SG++-Doxygen-Documentation
|
Marginalize Probability Density Function. More...
#include <OperationDensityMarginalizeLinear.hpp>
Public Member Functions | |
void | doMarginalize (base::DataVector &alpha, base::Grid *&mg, base::DataVector &malpha, unsigned int mdim) override |
Marginalizes (Density) Functions. More... | |
OperationDensityMarginalizeLinear (base::Grid *grid) | |
virtual | ~OperationDensityMarginalizeLinear () |
Public Member Functions inherited from sgpp::datadriven::OperationDensityMarginalize | |
OperationDensityMarginalize (base::Grid *grid) | |
virtual | ~OperationDensityMarginalize () |
Additional Inherited Members | |
Protected Attributes inherited from sgpp::datadriven::OperationDensityMarginalize | |
base::Grid * | grid |
Marginalize Probability Density Function.
|
inlineexplicit |
|
inlinevirtual |
References alpha, and doMarginalize().
|
overridevirtual |
Marginalizes (Density) Functions.
alpha | Coefficient vector for current grid |
mg | Referenz of grid pointer |
malpha | Coefficient vector for new grid (mg). Will be resized. |
mdim | Marginalize 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 from sgpp::datadriven::OperationDensityMarginalize.
References sgpp::base::Grid::createLinearGrid(), sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridPoint::getIndex(), sgpp::base::HashGridPoint::getLevel(), sgpp::base::HashGridStorage::getPoint(), sgpp::base::HashGridStorage::getSize(), sgpp::base::Grid::getStorage(), sgpp::datadriven::OperationDensityMarginalize::grid, python.statsfileInfo::i, sgpp::combigrid::pow(), sgpp::base::HashGridPoint::set(), and sgpp::base::DataVector::setAll().
Referenced by ~OperationDensityMarginalizeLinear().