00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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