These tests are meant to use the bootstrap calculators and test against analytical confidence intervals. More...
Public Member Functions | |
| NormalSampler (Real mean, Real std, unsigned int seed) | |
| Real | sample () const |
| std::vector< Real > | sample (std::size_t n) const |
| Real | meanConfidence (Real level, std::size_t n) const |
| Real | stdConfidence (Real level, std::size_t n) const |
Static Private Member Functions | |
| static Real | computeZ (Real level) |
Private Attributes | |
| const Real | _mean |
| const Real | _std |
| MooseRandom | _generator |
These tests are meant to use the bootstrap calculators and test against analytical confidence intervals.
The tolerance for the tests is pretty loose (50%), but at least it shows that the bootstrapping is in the ballpark (as it is meant to).
The analytical confidence intervals are based on sampling a normal distribution, this distributiong has nice properties so the confidence interval for mean and standard deviation are analytical.
Definition at line 35 of file TestBootstrapCalculators.C.
|
inline |
Definition at line 38 of file TestBootstrapCalculators.C.
|
inlinestaticprivate |
Definition at line 69 of file TestBootstrapCalculators.C.
Referenced by meanConfidence(), and stdConfidence().
|
inline |
Definition at line 52 of file TestBootstrapCalculators.C.
|
inline |
Definition at line 43 of file TestBootstrapCalculators.C.
|
inline |
Definition at line 44 of file TestBootstrapCalculators.C.
|
inline |
Definition at line 59 of file TestBootstrapCalculators.C.
|
private |
Definition at line 78 of file TestBootstrapCalculators.C.
Referenced by NormalSampler(), and sample().
|
private |
Definition at line 76 of file TestBootstrapCalculators.C.
Referenced by sample().
|
private |
Definition at line 77 of file TestBootstrapCalculators.C.
Referenced by meanConfidence(), sample(), and stdConfidence().