#include <gsl/gsl_rng.h>
#include <cstdio>
#include <vector>
#include "kdsPmagL.H"
Go to the source code of this file.
Functions | |
void | Print (const SVec &sv) |
Print out the values in a 6 or 7 value s diagonal matrix w/ or without sigma. | |
size_t | BootstrapParametricSample (const std::vector< SVec > &s, const std::vector< float > &sigmas, SVec &newSample, gsl_rng *r) |
Draw a random sample from the raw dataset, but perturbed by sample's sigma. | |
size_t | BootstrapParametricSite (const std::vector< SVec > &s, const float sigma, SVec &newSample, gsl_rng *r) |
Draw a random sample from the raw dataset, but perturbed by a single sigma. | |
template<class T> | |
T | getDevRandom (T &randomSample) |
This is used as a better random seed to pass to the GSL random number engine. |
|
Draw a random sample from the raw dataset, but perturbed by sample's sigma.
Then for each value in the selected s, a delta is created by sigmas[sampleNum] * gsl_ran_gaussian(r,1.0) then added to that s value. The 6 new s values are then renormalized to have a trace of 1. http://www.gnu.org/software/gsl/manual/gsl-ref_19.html#SEC288
|
|
Draw a random sample from the raw dataset, but perturbed by a single sigma.
Then for each value in the selected s, a delta is created by sigma * gsl_ran_gaussian(r,1.0) then added to that s value. The 6 new s values are then renormalized to have a trace of 1. http://www.gnu.org/software/gsl/manual/gsl-ref_19.html#SEC288
|
|
This is used as a better random seed to pass to the GSL random number engine.
|
|
Print out the values in a 6 or 7 value s diagonal matrix w/ or without sigma.
|