Functions

src/eeg.c File Reference

#include "eeg.h"
#include "helper.h"
#include "mathadd.h"

Go to the source code of this file.

Functions

void eeg_append_comment (EEG *eeg, const char *comment)
 append text to the comment-field in the EEG-struct.
void eeg_free (EEG *eeg)
 free's all memory in EEG-struct. including the data
EEGeeg_init (int nbchan, int ntrials, int nsamples)
 create an empty EEG-data struct.
void eeg_print (FILE *out, const EEG *eeg, int preview)
 Pretty-print an EEG - struct.
void print_channelinfo (FILE *out, const ChannelInfo *c)

Function Documentation

void eeg_append_comment ( EEG eeg,
const char *  comment 
)

append text to the comment-field in the EEG-struct.

Parameters:
eeg the input struct
comment the text to append

Definition at line 62 of file eeg.c.

void eeg_free ( EEG eeg  ) 

free's all memory in EEG-struct. including the data

Parameters:
eeg 

Definition at line 43 of file eeg.c.

EEG* eeg_init ( int  nbchan,
int  ntrials,
int  nsamples 
)

create an empty EEG-data struct.

Parameters:
nbchan number of channels
ntrials number of trials (1 for continuous data)
nsamples number of samples for each trial
Returns:
EEG

Definition at line 12 of file eeg.c.

void eeg_print ( FILE *  out,
const EEG eeg,
int  preview 
)

Pretty-print an EEG - struct.

Parameters:
out the output stream
eeg the struct
preview number of items to preview in data

Definition at line 77 of file eeg.c.

void print_channelinfo ( FILE *  out,
const ChannelInfo c 
)

Definition at line 524 of file eeg.c.