Main Page   Namespace List   Alphabetical List   Compound List   File List   Compound Members   File Members  

analyze.h

Go to the documentation of this file.
00001 
00002 /* Copyright(C) (2002) (ID - IMAG) <Florent.Morata@imag.fr> */
00003 
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 Library 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 Free Software
00017  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00018  */
00019  
00020 
00029 #ifndef _ANALYZE_H_
00030 #define _ANALYZE_H_
00031 
00032 
00033 #include <vector>
00034 #include <string>
00035 #include <fstream>
00036 #include <iostream>
00037 #include <cmath>
00038 
00040 using namespace std;
00041 
00042 
00044 typedef long double ldouble;
00045 
00046 
00050 class Analyze{
00051   
00052  private:
00054   vector<int> cl;
00056   vector<int> t;
00058   int size;
00060   vector<int> histo_cl;
00062   vector<int> histo_t;
00063   
00064  public:
00065   
00066   void open_sample(const string path);
00067   int elt_cl(const int i) const;
00068   int elt_time(const int i) const;
00069   int nb_cl() const;
00070   int size_sample() const;
00071   int MaxTau() const;
00072   void create_cl();
00073   void create_time();
00074   int elt_histo_time(const int i) const;
00075   string norm_cl(const string file);
00076   string norm_time(const string file);
00077   double pi(const int i) const;
00078   template<class T> 
00079     T sum(vector<T> V,const int choice);
00080   double tau(vector<int> V);
00081   double sigma(vector<int> V);
00082   double error(vector<int> V);
00083   ldouble int_conf(vector<int> V,const int choice);   
00084 };
00085 
00086 
00087 #include "analyze.inl"
00088 
00089 
00090 
00091 #endif
00092 
00093 
00094 

Generated on Tue Dec 10 12:44:21 2002 for PSI by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002