StatErrEst< SampleGenerator > Class Template Reference
[Statistical methods]

This class is used as a base for stochastic error estimation. More...

#include <StatErrEst.h>

List of all members.

Public Member Functions

std::vector< double > & GetSamples ()
 public access function to generated samples
void CalcErrors (double &m, double &v)
 The main function, calculates the error, by generating samples and calling the derived function.
 StatErrEst (const int nsamples, SampleGenerator TheGenerator)
 The constructor takes two parameters, the desired number of samples and the function object to generate them.
virtual ~StatErrEst ()

Protected Attributes

int nrealizations
 How many samples are requested.
std::vector< doubleSamples
 the vector that holds the generated samples


Detailed Description

template<class SampleGenerator>
class StatErrEst< SampleGenerator >

This class is used as a base for stochastic error estimation.

This base class is used for stochastic error estimation with Bootstrap, Jacknife or similar methods. It takes a template parameter, the type of the function object that generates individual samples for the analysis. The only requirement is, that operator() returns a value that is convertible to a double.

Definition at line 16 of file StatErrEst.h.


Constructor & Destructor Documentation

template<class SampleGenerator>
StatErrEst< SampleGenerator >::StatErrEst ( const int  nsamples,
SampleGenerator  TheGenerator 
) [inline]

The constructor takes two parameters, the desired number of samples and the function object to generate them.

Definition at line 44 of file StatErrEst.h.

template<class SampleGenerator>
virtual StatErrEst< SampleGenerator >::~StatErrEst (  )  [inline, virtual]

Definition at line 46 of file StatErrEst.h.


Member Function Documentation

template<class SampleGenerator>
void StatErrEst< SampleGenerator >::CalcErrors ( double m,
double v 
) [inline]

The main function, calculates the error, by generating samples and calling the derived function.

Definition at line 38 of file StatErrEst.h.

template<class SampleGenerator>
std::vector<double>& StatErrEst< SampleGenerator >::GetSamples (  )  [inline]

public access function to generated samples

Definition at line 36 of file StatErrEst.h.


Member Data Documentation

template<class SampleGenerator>
int StatErrEst< SampleGenerator >::nrealizations [protected]

How many samples are requested.

Definition at line 31 of file StatErrEst.h.

template<class SampleGenerator>
std::vector<double> StatErrEst< SampleGenerator >::Samples [protected]

the vector that holds the generated samples

Definition at line 33 of file StatErrEst.h.

Referenced by StatErrEst< SampleGenerator >::GetSamples().


The documentation for this class was generated from the following file:

Generated on Tue Aug 4 16:04:22 2009 for GPLIB++ by  doxygen 1.5.8