|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
#include <LatinHyperCube.h>
Public Types | |
| typedef std::uniform_real_distribution< double > | dist_t |
Public Member Functions | |
| LatinHyperCube (double lower, double upper) | |
| LatinHyperCube (double lower, double upper, int seed) | |
| ~LatinHyperCube () | |
| void | create (std::shared_ptr< SampleIndividual > &ind, std::size_t i) |
| void | allocate (const CmdArguments_t &args, const Comm::Bundle_t &comm) |
| virtual void | create (std::shared_ptr< SampleIndividual > &ind, size_t i)=0 |
Private Member Functions | |
| double | map2domain_m (double val) |
| void | fillBins_m (std::size_t nTotal, std::size_t nLocal, int startBin, std::size_t seed) |
Private Attributes | |
| std::deque< std::size_t > | bin_m |
| double | binsize_m |
| double | upper_m |
| double | lower_m |
| dist_t | dist_m |
| RNGStream * | RNGInstance_m |
| std::size_t | seed_m |
Definition at line 30 of file LatinHyperCube.h.
| typedef std::uniform_real_distribution<double> LatinHyperCube::dist_t |
Definition at line 34 of file LatinHyperCube.h.
|
inline |
Definition at line 36 of file LatinHyperCube.h.
References binsize_m, dist_m, lower_m, RNGInstance_m, seed_m, and upper_m.
|
inline |
Definition at line 45 of file LatinHyperCube.h.
References binsize_m, dist_m, lower_m, RNGInstance_m, seed_m, and upper_m.
|
inline |
Definition at line 54 of file LatinHyperCube.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 66 of file LatinHyperCube.h.
References binsize_m, fillBins_m(), CmdArguments::getArg(), RNGStream::getInstance(), Comm::Bundle_t::island_id, lower_m, RNGInstance_m, seed_m, and upper_m.
|
inline |
Definition at line 59 of file LatinHyperCube.h.
References dist_m, map2domain_m(), and RNGInstance_m.
|
pure virtualinherited |
Implemented in Normal, SampleGaussianSequence, SampleRandomizedSequence< T >, SampleSequence< T >, Uniform< T >, and Uniform< size_t >.
|
inlineprivate |
|
inlineprivate |
|
private |
Definition at line 134 of file LatinHyperCube.h.
Referenced by fillBins_m(), and map2domain_m().
|
private |
Definition at line 135 of file LatinHyperCube.h.
Referenced by allocate(), LatinHyperCube(), LatinHyperCube(), and map2domain_m().
|
private |
Definition at line 140 of file LatinHyperCube.h.
Referenced by create(), LatinHyperCube(), and LatinHyperCube().
|
private |
Definition at line 138 of file LatinHyperCube.h.
Referenced by allocate(), LatinHyperCube(), LatinHyperCube(), and map2domain_m().
|
private |
Definition at line 142 of file LatinHyperCube.h.
Referenced by allocate(), create(), LatinHyperCube(), LatinHyperCube(), and ~LatinHyperCube().
|
private |
Definition at line 144 of file LatinHyperCube.h.
Referenced by allocate(), LatinHyperCube(), and LatinHyperCube().
|
private |
Definition at line 137 of file LatinHyperCube.h.
Referenced by allocate(), LatinHyperCube(), and LatinHyperCube().