SG++
sgpp::datadriven::OperationDensityRejectionSampling Class Referenceabstract

Sampling on all dimensions. More...

#include <OperationDensityRejectionSampling.hpp>

Inheritance diagram for sgpp::datadriven::OperationDensityRejectionSampling:
sgpp::datadriven::OperationDensityRejectionSamplingLinear

Public Member Functions

virtual void doSampling (base::DataVector *alpha, base::DataMatrix *&samples, size_t num_samples, size_t trial_max)=0
 Rejection sampling. More...
 
 OperationDensityRejectionSampling ()
 
virtual ~OperationDensityRejectionSampling ()
 

Detailed Description

Sampling on all dimensions.

Constructor & Destructor Documentation

sgpp::datadriven::OperationDensityRejectionSampling::OperationDensityRejectionSampling ( )
inline
virtual sgpp::datadriven::OperationDensityRejectionSampling::~OperationDensityRejectionSampling ( )
inlinevirtual

References alpha, and doSampling().

Member Function Documentation

virtual void sgpp::datadriven::OperationDensityRejectionSampling::doSampling ( base::DataVector alpha,
base::DataMatrix *&  samples,
size_t  num_samples,
size_t  trial_max 
)
pure virtual

Rejection sampling.

Parameters
alphaCoefficient vector for current grid
samplesOutput DataMatrix (rows: # of samples, columns: # of dims)
num_samples# of samples to draw
trial_maxmaximum # of trials for drawing a sample (exceeding will cause operation to stop)

Implemented in sgpp::datadriven::OperationDensityRejectionSamplingLinear.

Referenced by ~OperationDensityRejectionSampling().


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