OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
#include <Normal.h>
Public Types | |
typedef std::normal_distribution< double > | dist_t |
Public Member Functions | |
Normal (double lower, double upper) | |
Normal (double lower, double upper, std::size_t seed) | |
~Normal () | |
void | create (boost::shared_ptr< SampleIndividual > &ind, size_t i) |
void | allocate (const CmdArguments_t &, const Comm::Bundle_t &comm) |
Public Member Functions inherited from SamplingMethod | |
virtual | ~SamplingMethod () |
Private Attributes | |
dist_t | dist_m |
RNGStream * | RNGInstance_m |
std::size_t | seed_m |
typedef std::normal_distribution<double> Normal::dist_t |
|
inline |
|
inline |
Definition at line 45 of file Normal.h.
References RNGStream::deleteInstance(), and RNGInstance_m.
|
inlinevirtual |
Allocate memory for sampling. Not every sampling method requires that.
This function is used to reduce memory since only the sampler ranks need these sampling methods.
args | samler arguments |
comm | sampler communicator |
Reimplemented from SamplingMethod.
Definition at line 54 of file Normal.h.
References RNGStream::getInstance(), Comm::Bundle_t::island_id, RNGInstance_m, and seed_m.
|
inlinevirtual |
Implements SamplingMethod.
Definition at line 50 of file Normal.h.
References dist_m, RNGStream::getNext(), and RNGInstance_m.
|
private |
Definition at line 62 of file Normal.h.
Referenced by allocate(), create(), and ~Normal().
|
private |
Definition at line 64 of file Normal.h.
Referenced by allocate().