SG++-Doxygen-Documentation
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

◆ OperationDensityRejectionSampling()

sgpp::datadriven::OperationDensityRejectionSampling::OperationDensityRejectionSampling ( )
inline

◆ ~OperationDensityRejectionSampling()

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

Member Function Documentation

◆ doSampling()

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: