OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
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 ()
 

Private Attributes

std::vector< Tpoints_m
 
Uniform< size_t > unif_m
 
T lower_m
 
double step_m
 

Detailed Description

template<typename T>
class SampleRandomizedSequence< T >

Definition at line 7 of file SampleRandomizedSequence.h.

Constructor & Destructor Documentation

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

Definition at line 12 of file SampleRandomizedSequence.h.

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

Definition at line 18 of file SampleRandomizedSequence.h.

Member Function Documentation

template<typename T >
void SampleRandomizedSequence< T >::allocate ( const CmdArguments_t args,
const Comm::Bundle_t comm 
)
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 29 of file SampleRandomizedSequence.h.

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

Here is the call graph for this function:

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

Member Data Documentation

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

Definition at line 36 of file SampleRandomizedSequence.h.

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

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

Definition at line 34 of file SampleRandomizedSequence.h.

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

Definition at line 37 of file SampleRandomizedSequence.h.

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

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

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