|
OPAL (Object Oriented Parallel Accelerator Library)
2024.1
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 (std::shared_ptr< SampleIndividual > &ind, size_t i) |
| void | allocate (const CmdArguments_t &, 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 61 of file Uniform.h.
Referenced by SampleRandomizedSequence< T >::allocate().
|
inlinevirtual |
Implements SamplingMethod.
|
inline |
Definition at line 66 of file Uniform.h.
Referenced by SampleRandomizedSequence< T >::create().
Definition at line 71 of file Uniform.h.
Referenced by Uniform< size_t >::create(), and Uniform< size_t >::getNext().
Definition at line 73 of file Uniform.h.
Referenced by Uniform< size_t >::allocate(), Uniform< size_t >::create(), Uniform< size_t >::getNext(), and Uniform< size_t >::~Uniform().
|
private |
Definition at line 75 of file Uniform.h.
Referenced by Uniform< size_t >::allocate().
1.8.5