GPLIB++
|
This class is used as a base for stochastic error estimation. More...
#include <StatErrEst.h>
Public Member Functions | |
std::vector< double > & | GetSamples () |
public access function to generated samples More... | |
void | CalcErrors (double &m, double &v) |
The main function, calculates the error, by generating samples and calling the derived function. More... | |
StatErrEst (const int nsamples, SampleGenerator TheGenerator) | |
The constructor takes two parameters, the desired number of samples and the function object to generate them. More... | |
virtual | ~StatErrEst () |
Protected Attributes | |
int | nrealizations |
How many samples are requested. More... | |
std::vector< double > | Samples |
the vector that holds the generated samples More... | |
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 19 of file StatErrEst.h.
|
inline |
The constructor takes two parameters, the desired number of samples and the function object to generate them.
Definition at line 50 of file StatErrEst.h.
|
inlinevirtual |
Definition at line 55 of file StatErrEst.h.
|
inline |
The main function, calculates the error, by generating samples and calling the derived function.
Definition at line 44 of file StatErrEst.h.
Referenced by PrintComponent().
|
inline |
public access function to generated samples
Definition at line 39 of file StatErrEst.h.
References gplib::StatErrEst< SampleGenerator >::Samples.
|
protected |
How many samples are requested.
Definition at line 34 of file StatErrEst.h.
|
protected |
the vector that holds the generated samples
Definition at line 36 of file StatErrEst.h.
Referenced by gplib::StatErrEst< SampleGenerator >::GetSamples().