Functions

src/tools.c File Reference

#include "tools.h"
#include "eeg.h"
#include "mathadd.h"

Go to the source code of this file.

Functions

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

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.