OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | List of all members
SamplingMethod Class Referenceabstract

#include <SamplingMethod.h>

Inheritance diagram for SamplingMethod:
Inheritance graph
[legend]

Public Member Functions

virtual ~SamplingMethod ()
 
virtual void create (boost::shared_ptr< SampleIndividual > &ind, size_t i)=0
 
virtual void allocate (const CmdArguments_t &args, const Comm::Bundle_t &comm)
 

Detailed Description

Definition at line 12 of file SamplingMethod.h.

Constructor & Destructor Documentation

virtual SamplingMethod::~SamplingMethod ( )
inlinevirtual

Definition at line 16 of file SamplingMethod.h.

Member Function Documentation

virtual void SamplingMethod::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 in FromFile, LatinHyperCube, Uniform< T >, Uniform< size_t >, Normal, and SampleRandomizedSequence< T >.

Definition at line 29 of file SamplingMethod.h.

virtual void SamplingMethod::create ( boost::shared_ptr< SampleIndividual > &  ind,
size_t  i 
)
pure virtual

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