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

src/gapstat.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 
00043 #ifndef GAPSTAT_H
00044 # define GAPSTAT_H
00045 #include <time.h>
00046 #include "mathadd.h"
00047 #include "definitions.h"
00048 #include "array.h"
00049 #include "averaging.h"
00050 #include "warping.h"
00051 #include "distances.h"
00052 #include "helper.h"
00053 
00054 #ifdef __cplusplus
00055 extern "C" {
00056 #endif
00057 
00058   typedef struct {
00059      int K;            
00060      int B;            
00061      double *gapdistr; 
00062      double *sk;       
00063      double *Wk;       
00064      double **Wkref;   
00065      int khat;         
00066      ProgressBarFunction progress; 
00067   } GapStatistic;
00068 
00069 
00070 #if 0
00071 
00072   GapStatistic* gapstat_init( GapStatistic *g, int K, int B );
00073   void          gapstat_free( GapStatistic *g );
00074   void          gapstat_print( FILE *out, GapStatistic *g );
00075   void          gapstat_calculate( GapStatistic *gap, double **X, int n, int p, 
00076                                               VectorDistanceFunction distfunction, const double** D );
00077   
00078   double** gap_get_reference_distribution_simple( const double **X, int n, int p, double **Xr );
00079   double** gap_get_reference_distribution_svd   ( const double **X, int n, int p, double **Xr );
00080 
00081   int      eeg_best_num_clusters_gapstat( const EEG *eeg, VectorDistanceFunction distfunction,
00082                                                         OptArgList *optargs );
00083 #endif
00084 
00085 #ifdef __cplusplus
00086 }
00087 #endif
00088 
00089 
00090 #endif

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