|
OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
#include <Uniform.h>


Public Types | |
| typedef std::conditional < std::is_integral< T >::value, std::uniform_int_distribution < T > , std::uniform_real_distribution < T > >::type | dist_t |
Public Member Functions | |
| Uniform (T lower, T upper) | |
| Uniform (T lower, T upper, std::size_t seed) | |
| ~Uniform () | |
| void | create (boost::shared_ptr< SampleIndividual > &ind, size_t i) |
| void | allocate (const CmdArguments_t &args, const Comm::Bundle_t &comm) |
| T | getNext () |
Public Member Functions inherited from SamplingMethod | |
| virtual | ~SamplingMethod () |
Private Attributes | |
| dist_t | dist_m |
| RNGStream * | RNGInstance_m |
| std::size_t | seed_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 41 of file Uniform.h.
Referenced by SampleRandomizedSequence< T >::allocate().
|
inlinevirtual |
Implements SamplingMethod.
Definition at line 46 of file Uniform.h.
Referenced by SampleRandomizedSequence< T >::create().
Definition at line 51 of file Uniform.h.
Referenced by Uniform< size_t >::create(), and Uniform< size_t >::getNext().
Definition at line 53 of file Uniform.h.
Referenced by Uniform< size_t >::allocate(), Uniform< size_t >::create(), Uniform< size_t >::getNext(), and Uniform< size_t >::~Uniform().
Definition at line 55 of file Uniform.h.
Referenced by Uniform< size_t >::allocate().
1.8.5