OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
SampleSequence< T > Class Template Reference

#include <SampleSequence.h>

Inheritance diagram for SampleSequence< T >:
Collaboration diagram for SampleSequence< T >:

Public Member Functions

 SampleSequence (T lower, T upper, size_t modulo, int nSample)
void create (std::shared_ptr< SampleIndividual > &ind, size_t i)
virtual void allocate (const CmdArguments_t &, const Comm::Bundle_t &)

Private Attributes

lowerLimit_m
double stepSize_m
unsigned int numSamples_m
size_t volumeLowerDimensions_m

Detailed Description

template<typename T>
class SampleSequence< T >

Definition at line 28 of file SampleSequence.h.

Constructor & Destructor Documentation

◆ SampleSequence()

template<typename T>
SampleSequence< T >::SampleSequence ( T lower,
T upper,
size_t modulo,
int nSample )
inline

Definition at line 33 of file SampleSequence.h.

References lowerLimit_m, numSamples_m, stepSize_m, and volumeLowerDimensions_m.

Member Function Documentation

◆ allocate()

virtual void SamplingMethod::allocate ( const CmdArguments_t & ,
const Comm::Bundle_t &  )
inlinevirtualinherited

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.

Parameters
argssamler arguments
commsampler communicator

Reimplemented in FromFile, LatinHyperCube, Normal, SampleRandomizedSequence< T >, Uniform< T >, and Uniform< size_t >.

Definition at line 49 of file SamplingMethod.h.

◆ create()

template<typename T>
void SampleSequence< T >::create ( std::shared_ptr< SampleIndividual > & ind,
size_t i )
inlinevirtual

Implements SamplingMethod.

Definition at line 40 of file SampleSequence.h.

References lowerLimit_m, numSamples_m, stepSize_m, and volumeLowerDimensions_m.

Member Data Documentation

◆ lowerLimit_m

template<typename T>
T SampleSequence< T >::lowerLimit_m
private

Definition at line 50 of file SampleSequence.h.

Referenced by create(), and SampleSequence().

◆ numSamples_m

template<typename T>
unsigned int SampleSequence< T >::numSamples_m
private

Definition at line 52 of file SampleSequence.h.

Referenced by create(), and SampleSequence().

◆ stepSize_m

template<typename T>
double SampleSequence< T >::stepSize_m
private

Definition at line 51 of file SampleSequence.h.

Referenced by create(), and SampleSequence().

◆ volumeLowerDimensions_m

template<typename T>
size_t SampleSequence< T >::volumeLowerDimensions_m
private

Definition at line 53 of file SampleSequence.h.

Referenced by create(), and SampleSequence().


The documentation for this class was generated from the following file: