OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
|
#include <SampleRandomizedSequence.h>
Public Member Functions | |
SampleRandomizedSequence (T lower, T upper, double step) | |
SampleRandomizedSequence (T lower, T upper, double step, size_t seed) | |
void | create (boost::shared_ptr< SampleIndividual > &ind, size_t i) |
void | allocate (const CmdArguments_t &args, const Comm::Bundle_t &comm) |
![]() | |
virtual | ~SamplingMethod () |
virtual void | create (boost::shared_ptr< SampleIndividual > &ind, size_t i)=0 |
virtual void | allocate (const CmdArguments_t &, const Comm::Bundle_t &) |
Private Attributes | |
std::vector< T > | points_m |
Uniform< size_t > | unif_m |
T | lower_m |
double | step_m |
Definition at line 28 of file SampleRandomizedSequence.h.
|
inline |
Definition at line 33 of file SampleRandomizedSequence.h.
|
inline |
Definition at line 39 of file SampleRandomizedSequence.h.
|
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 50 of file SampleRandomizedSequence.h.
References Uniform< T >::allocate(), and SampleRandomizedSequence< T >::unif_m.
|
inlinevirtual |
Implements SamplingMethod.
Definition at line 45 of file SampleRandomizedSequence.h.
References Uniform< T >::getNext(), SampleRandomizedSequence< T >::lower_m, SampleRandomizedSequence< T >::step_m, Attrib::Legacy::Distribution::T, and SampleRandomizedSequence< T >::unif_m.
|
private |
Definition at line 57 of file SampleRandomizedSequence.h.
Referenced by SampleRandomizedSequence< T >::create().
|
private |
Definition at line 55 of file SampleRandomizedSequence.h.
|
private |
Definition at line 58 of file SampleRandomizedSequence.h.
Referenced by SampleRandomizedSequence< T >::create().
|
private |
Definition at line 56 of file SampleRandomizedSequence.h.
Referenced by SampleRandomizedSequence< T >::allocate(), and SampleRandomizedSequence< T >::create().