#include <StatErrEst.h>
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< double > | Samples |
| the vector that holds the generated samples | |
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.
| 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.
| virtual StatErrEst< SampleGenerator >::~StatErrEst | ( | ) | [inline, virtual] |
Definition at line 46 of file StatErrEst.h.
| 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.
| std::vector<double>& StatErrEst< SampleGenerator >::GetSamples | ( | ) | [inline] |
int StatErrEst< SampleGenerator >::nrealizations [protected] |
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().
1.5.8