Functions

src/tools.h File Reference

STATUS: stable Other Tools. More...

#include "definitions.h"
#include "eeg.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

EEGeeg_remove_baseline (EEG *eeg, double win_from, double win_to, bool alloc)

Detailed Description

STATUS: stable Other Tools.

Definition in file tools.h.


Function Documentation

EEG* eeg_remove_baseline ( EEG eeg,
double  win_from,
double  win_to,
bool  alloc 
)

Remove baseline from eeg-data. Computes the average of the eeg-values in the given time-window and substracts it from the all data.

Parameters:
eeg - the struct
win_from - the time-window in ms (starting from)
win_to - the time-window in ms (until)
Note:
both win_from and win_to must be in the times-array of eeg->times

Definition at line 33 of file tools.c.