Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00034 #ifndef AVERAGING_H
00035 #define AVERAGING_H
00036 #include "mathadd.h"
00037 #include "definitions.h"
00038 #include "array.h"
00039 #include "eeg.h"
00040 #include "optarg.h"
00041 #include "distances.h"
00042
00043 #ifdef __cplusplus
00044 extern "C" {
00045 #endif
00046
00054 typedef Array*(*SignalAverageFunction)( const Array *,uint[2],double[2],OptArgList*);
00055
00056 Array* average_example( const Array *data, uint idx[2], double weights[2],
00057 OptArgList *optargs );
00058
00059 Array* hierarchical_average( const Array *data, const Array *distmat,
00060 SignalAverageFunction avgfct, OptArgList *optargs );
00061
00062 EEG* eeg_simple_average ( const EEG *eeg );
00063 EEG* eeg_average_channels ( const EEG *eeg );
00064
00065 #ifdef EXPERIMENTAL
00066
00067 typedef Array*(*SignalAverageFunctionUnequalLength)( Array **,uint[2],double[2],OptArgList*);
00068 Array* average_unequal_warp( Array **data, uint idx[2], double weights[2],
00069 OptArgList *optargs );
00070 Array* hierarchical_average_unequal_length( Array **data, const Array *distmat,
00071 SignalAverageFunctionUnequalLength avgfct,
00072 OptArgList *optargs );
00073 #endif
00074
00075 #ifdef __cplusplus
00076 }
00077 #endif
00078
00079 #endif