18#ifndef OPAL_NORMAL_RANDOM_SAMPLING_H
19#define OPAL_NORMAL_RANDOM_SAMPLING_H
30 typedef std::normal_distribution<double>
dist_t;
34 :
dist_m(0.5 * (lower + upper), (upper - lower) / 10)
40 :
dist_m(0.5 * (lower + upper), (upper - lower) / 10)
50 void create(boost::shared_ptr<SampleIndividual>& ind,
size_t i) {
boost::shared_ptr< CmdArguments > CmdArguments_t
int seed
The current random seed.
void allocate(const CmdArguments_t &, const Comm::Bundle_t &comm)
Normal(double lower, double upper, std::size_t seed)
void create(boost::shared_ptr< SampleIndividual > &ind, size_t i)
RNGStream * RNGInstance_m
Normal(double lower, double upper)
std::normal_distribution< double > dist_t
static RNGStream * getInstance()
static void deleteInstance(RNGStream *&generator)
DISTR::result_type getNext(DISTR &RNGDist)
bundles all communicators for a specific role/pid