OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
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 () |
Private Attributes | |
std::vector< T > | points_m |
Uniform< size_t > | unif_m |
T | lower_m |
double | step_m |
Definition at line 7 of file SampleRandomizedSequence.h.
|
inline |
Definition at line 12 of file SampleRandomizedSequence.h.
|
inline |
Definition at line 18 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 29 of file SampleRandomizedSequence.h.
References Uniform< T >::allocate(), and SampleRandomizedSequence< T >::unif_m.
|
inlinevirtual |
Implements SamplingMethod.
Definition at line 24 of file SampleRandomizedSequence.h.
References Uniform< T >::getNext(), SampleRandomizedSequence< T >::lower_m, SampleRandomizedSequence< T >::step_m, T, and SampleRandomizedSequence< T >::unif_m.
|
private |
Definition at line 36 of file SampleRandomizedSequence.h.
Referenced by SampleRandomizedSequence< T >::create().
|
private |
Definition at line 34 of file SampleRandomizedSequence.h.
|
private |
Definition at line 37 of file SampleRandomizedSequence.h.
Referenced by SampleRandomizedSequence< T >::create().
|
private |
Definition at line 35 of file SampleRandomizedSequence.h.
Referenced by SampleRandomizedSequence< T >::allocate(), and SampleRandomizedSequence< T >::create().