• API Main Page
  • Documentation
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

src/averaging.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2008 by Matthias Ihrke   *
00003  *   mihrke@uni-goettingen.de   *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
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

Generated on Fri Jun 25 2010 14:10:16 for libeegtools by  doxygen 1.7.0