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 36 of file TestBootstrapCalculators.C.
Definition at line 39 of file TestBootstrapCalculators.C.
Definition at line 70 of file TestBootstrapCalculators.C.
Definition at line 53 of file TestBootstrapCalculators.C.
Referenced by TEST().
|
inline |
Definition at line 44 of file TestBootstrapCalculators.C.
Referenced by TEST().
|
inline |
Definition at line 45 of file TestBootstrapCalculators.C.
Definition at line 60 of file TestBootstrapCalculators.C.
Referenced by TEST().
|
private |
Definition at line 79 of file TestBootstrapCalculators.C.
|
private |
Definition at line 77 of file TestBootstrapCalculators.C.
|
private |
Definition at line 78 of file TestBootstrapCalculators.C.