OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Public Member Functions | Private Attributes | List of all members
SampleRandomizedSequence< T > Class Template Reference

#include <SampleRandomizedSequence.h>

Inheritance diagram for SampleRandomizedSequence< T >:
Inheritance graph
[legend]
Collaboration diagram for SampleRandomizedSequence< T >:
Collaboration graph
[legend]

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)
 
- Public Member Functions inherited from SamplingMethod
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
 
lower_m
 
double step_m
 

Detailed Description

template<typename T>
class SampleRandomizedSequence< T >

Definition at line 28 of file SampleRandomizedSequence.h.

Constructor & Destructor Documentation

◆ SampleRandomizedSequence() [1/2]

template<typename T >
SampleRandomizedSequence< T >::SampleRandomizedSequence ( lower,
upper,
double  step 
)
inline

Definition at line 33 of file SampleRandomizedSequence.h.

◆ SampleRandomizedSequence() [2/2]

template<typename T >
SampleRandomizedSequence< T >::SampleRandomizedSequence ( lower,
upper,
double  step,
size_t  seed 
)
inline

Definition at line 39 of file SampleRandomizedSequence.h.

Member Function Documentation

◆ allocate()

template<typename T >
void SampleRandomizedSequence< T >::allocate ( const CmdArguments_t ,
const Comm::Bundle_t  
)
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.

Parameters
argssamler arguments
commsampler communicator

Reimplemented from SamplingMethod.

Definition at line 50 of file SampleRandomizedSequence.h.

References Uniform< T >::allocate(), and SampleRandomizedSequence< T >::unif_m.

Here is the call graph for this function:

◆ create()

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

Member Data Documentation

◆ lower_m

template<typename T >
T SampleRandomizedSequence< T >::lower_m
private

Definition at line 57 of file SampleRandomizedSequence.h.

Referenced by SampleRandomizedSequence< T >::create().

◆ points_m

template<typename T >
std::vector<T> SampleRandomizedSequence< T >::points_m
private

Definition at line 55 of file SampleRandomizedSequence.h.

◆ step_m

template<typename T >
double SampleRandomizedSequence< T >::step_m
private

Definition at line 58 of file SampleRandomizedSequence.h.

Referenced by SampleRandomizedSequence< T >::create().

◆ unif_m

template<typename T >
Uniform<size_t> SampleRandomizedSequence< T >::unif_m
private

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