OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
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 &, const Comm::Bundle_t &)
 

Detailed Description

Definition at line 32 of file SamplingMethod.h.

Constructor & Destructor Documentation

◆ ~SamplingMethod()

virtual SamplingMethod::~SamplingMethod ( )
inlinevirtual

Definition at line 36 of file SamplingMethod.h.

Member Function Documentation

◆ allocate()

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

Definition at line 49 of file SamplingMethod.h.

◆ create()

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: