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

Analyze Class Reference

Statistics treatment of output PSI file '.sample'. More...

#include <analyze.h>

List of all members.

Public Methods

void open_sample (const string path)
 reading of a sample file. More...

int elt_cl (const int i) const
 Give the ith generate value. More...

int elt_time (const int i) const
 Give the ith coalesce time. More...

int nb_cl () const
 Give the class number of the generation. More...

int size_sample () const
 Give the sample size. More...

int MaxTau () const
 Give the largest coalesce time value. More...

void create_cl ()
 Creation of histo_cl vector. More...

void create_time ()
 Creation of histo_time vector. More...

int elt_histo_time (const int i) const
 Give the apparition number of the class value i. More...

string norm_cl (const string file)
 Normalization of histo_cl vector. More...

string norm_time (const string file)
 Normalization of histo_time vector. More...

double pi (const int i) const
 Give the ith estimated probability value. More...

template<class T> T sum (vector< T > V, const int choice)
 Sum of T vector element. More...

double tau (vector< int > V)
 Give the mean estimator. More...

double sigma (vector< int > V)
 Give the standard deviation estimator. More...

double error (vector< int > V)
 Give the relative error. More...

ldouble int_conf (vector< int > V, const int choice)
 Construction of confidence interval. More...


Private Attributes

vector< int > cl
vector< int > t
int size
vector< int > histo_cl
vector< int > histo_t


Detailed Description

Statistics treatment of output PSI file '.sample'.


Member Function Documentation

void Analyze::create_cl  
 

Creation of histo_cl vector.

void Analyze::create_time  
 

Creation of histo_time vector.

int Analyze::elt_cl const int    i const
 

Give the ith generate value.

int Analyze::elt_histo_time const int    i const
 

Give the apparition number of the class value i.

int Analyze::elt_time const int    i const [inline]
 

Give the ith coalesce time.

double Analyze::error vector< int >    V
 

Give the relative error.

Parameters:
V  an integer vector of sample values.

ldouble Analyze::int_conf vector< int >    V,
const int    choice
 

Construction of confidence interval.

The choice variable permit to choose lower or upper born of the confidence interval.

Parameters:
V  an integer vector of sample values.
choice  an integer to specify the born.

int Analyze::MaxTau   const
 

Give the largest coalesce time value.

int Analyze::nb_cl   const
 

Give the class number of the generation.

If user simulate without functional, the class number is exactly the dimension of the space state.

string Analyze::norm_cl const string    file
 

Normalization of histo_cl vector.

It results a file '.stat_cl'.

Parameters:
file  a string corresponding to the sample name.

string Analyze::norm_time const string    file
 

Normalization of histo_time vector.

It results a file '.stat_time'.

Parameters:
file  a string corresponding to the sample name.

void Analyze::open_sample const string    path
 

reading of a sample file.

Parameters:
path  a string corresponding to the input full path name.

double Analyze::pi const int    i const
 

Give the ith estimated probability value.

double Analyze::sigma vector< int >    V
 

Give the standard deviation estimator.

Parameters:
V  an integer vector of sample values.

int Analyze::size_sample   const [inline]
 

Give the sample size.

template<class T>
T Analyze::sum vector< T >    V,
const int    choice
 

Sum of T vector element.

We can calculate , or .

Parameters:
V  a T vector, where T is a generic type.
choice  an integer to specify the kind of sum to execute.

double Analyze::tau vector< int >    V
 

Give the mean estimator.

Parameters:
V  an integer vector of sample values.


Member Data Documentation

vector<int> Analyze::cl [private]
 

Storage of output generate value.

vector<int> Analyze::histo_cl [private]
 

Count of different generate values apparition.

vector<int> Analyze::histo_t [private]
 

Count of different iteration number values apparition.

int Analyze::size [private]
 

Sample size.

vector<int> Analyze::t [private]
 

Storage of iteration number values : these values correspond to the coalesce time of an iteration.


The documentation for this class was generated from the following files:
Generated on Tue Dec 10 12:44:22 2002 for PSI by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002