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

Marginalize Probability Density Function. More...

#include <OperationDensityMarginalize.hpp>

Inheritance diagram for sgpp::datadriven::OperationDensityMarginalize:
sgpp::datadriven::OperationDensityMarginalizeLinear

Public Member Functions

virtual void doMarginalize (base::DataVector &alpha, base::Grid *&mg, base::DataVector &malpha, unsigned int mdim)
 Marginalizes (Density) Functions. More...
 
 OperationDensityMarginalize (base::Grid *grid)
 
virtual ~OperationDensityMarginalize ()
 

Protected Attributes

base::Gridgrid
 

Detailed Description

Marginalize Probability Density Function.

Constructor & Destructor Documentation

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

References alpha, and doMarginalize().

Member Function Documentation

void sgpp::datadriven::OperationDensityMarginalize::doMarginalize ( base::DataVector alpha,
base::Grid *&  mg,
base::DataVector malpha,
unsigned int  mdim 
)
virtual

Marginalizes (Density) Functions.

Parameters
alphaCoefficient vector for current grid
mgReferenz of grid pointer
malphaCoefficient vector for new grid (mg). Will be resized.
mdimMarginalize in dimension mdim

Note: Because of adaptively refined sparse grids, we cannot simply generate a regular grid. Thus, we need to add point after point to the new grid mg

Compute coefficients for marginalized density Each coefficient has to be weighted with the integral of the basis functions in direction mdim

Attention: The integral of one basis functions changes for if another type of basis is used!

Reimplemented in sgpp::datadriven::OperationDensityMarginalizeLinear.

References sgpp::base::Grid::createGridOfEquivalentType(), sgpp::base::Grid::getBasis(), sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridPoint::getIndex(), sgpp::base::HashGridPoint::getLevel(), sgpp::base::HashGridStorage::getPoint(), sgpp::base::HashGridStorage::getSequenceNumber(), sgpp::base::HashGridStorage::getSize(), sgpp::base::Grid::getStorage(), grid, python.statsfileInfo::i, sgpp::base::HashGridStorage::insert(), sgpp::base::HashGridStorage::isContaining(), sgpp::base::HashGridStorage::recalcLeafProperty(), sgpp::base::HashGridPoint::set(), and sgpp::base::DataVector::setAll().

Referenced by sgpp::datadriven::OperationDensityMargTo1D::marg_next_dim(), and ~OperationDensityMarginalize().

Member Data Documentation


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