SG++-Doxygen-Documentation
sgpp::datadriven::OperationDensityRejectionSamplingLinear Class Reference

Sampling with rejection sampling method. More...

#include <OperationDensityRejectionSamplingLinear.hpp>

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

Public Member Functions

void doSampling (base::DataVector *alpha, base::DataMatrix *&samples, size_t num_samples, size_t trial_max)
 Rejection sampling. More...
 
 OperationDensityRejectionSamplingLinear (base::Grid *grid)
 
virtual ~OperationDensityRejectionSamplingLinear ()
 
- Public Member Functions inherited from sgpp::datadriven::OperationDensityRejectionSampling
 OperationDensityRejectionSampling ()
 
virtual ~OperationDensityRejectionSampling ()
 

Protected Attributes

base::Gridgrid
 

Detailed Description

Sampling with rejection sampling method.

Constructor & Destructor Documentation

sgpp::datadriven::OperationDensityRejectionSamplingLinear::OperationDensityRejectionSamplingLinear ( base::Grid grid)
inlineexplicit
virtual sgpp::datadriven::OperationDensityRejectionSamplingLinear::~OperationDensityRejectionSamplingLinear ( )
inlinevirtual

Member Function Documentation

void sgpp::datadriven::OperationDensityRejectionSamplingLinear::doSampling ( base::DataVector alpha,
base::DataMatrix *&  samples,
size_t  num_samples,
size_t  trial_max 
)
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)

Implements sgpp::datadriven::OperationDensityRejectionSampling.

References sgpp::op_factory::createOperationEval(), sgpp::op_factory::createOperationMultipleEval(), sgpp::base::Grid::getDimension(), grid, python.statsfileInfo::i, python.utils.statsfile2gnuplot::j, sgpp::base::DataVector::max(), sgpp::base::OperationMultipleEval::mult(), friedman::p, sgpp::base::DataMatrix::set(), sgpp::base::DataMatrix::setRow(), and analyse_erg::tmp.

Referenced by ~OperationDensityRejectionSamplingLinear().

Member Data Documentation


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