SG++
sgpp::datadriven::OperationDensityMargTo1DLinear Class Reference

keep applying marginalize to function until it's reduced to only 1 dimension More...

#include <OperationDensityMargTo1DLinear.hpp>

Inheritance diagram for sgpp::datadriven::OperationDensityMargTo1DLinear:
sgpp::datadriven::OperationDensityMargTo1D

Public Member Functions

void margToDimX (base::DataVector *alpha, base::Grid *&grid_x, base::DataVector *&alpha_x, size_t dim_x)
 Keep applying marginalizes to (Density) Functions, until it's reduced to 1 dimension (dim_x) More...
 
virtual void margToDimXs (base::DataVector *alpha, base::Grid *&grid_x, base::DataVector *&alpha_x, std::vector< size_t > &dim_x)
 Keep applying marginalizes to (Density) Functions, until it's reduced to d dimensions (dim_x) More...
 
 OperationDensityMargTo1DLinear (base::Grid *grid)
 
virtual ~OperationDensityMargTo1DLinear ()
 
- Public Member Functions inherited from sgpp::datadriven::OperationDensityMargTo1D
 OperationDensityMargTo1D ()
 
virtual ~OperationDensityMargTo1D ()
 

Protected Member Functions

void marg_next_dim (base::Grid *g_in, base::DataVector *a_in, base::Grid *&g_out, base::DataVector *&a_out, std::vector< size_t > margDims, size_t ix)
 
- Protected Member Functions inherited from sgpp::datadriven::OperationDensityMargTo1D
void computeMarginalizationIndices (std::vector< size_t > &dim_x, size_t numDims, std::vector< size_t > &margDims)
 

Protected Attributes

base::Gridgrid
 

Detailed Description

keep applying marginalize to function until it's reduced to only 1 dimension

Constructor & Destructor Documentation

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

References alpha, margToDimX(), and margToDimXs().

Member Function Documentation

void sgpp::datadriven::OperationDensityMargTo1DLinear::marg_next_dim ( base::Grid g_in,
base::DataVector a_in,
base::Grid *&  g_out,
base::DataVector *&  a_out,
std::vector< size_t >  margDims,
size_t  ix 
)
protected
void sgpp::datadriven::OperationDensityMargTo1DLinear::margToDimX ( base::DataVector alpha,
base::Grid *&  grid_x,
base::DataVector *&  alpha_x,
size_t  dim_x 
)
virtual

Keep applying marginalizes to (Density) Functions, until it's reduced to 1 dimension (dim_x)

Parameters
alphaCoefficient vector for current grid
grid_xoutput 1D grid pointer
alpha_xCoefficient vector for new grid (grid_x). Will be initialized.
dim_xTarget dimension, all other dimensions will be marginalized

Implements sgpp::datadriven::OperationDensityMargTo1D.

References sgpp::base::Grid::getDimension(), grid, and margToDimXs().

Referenced by ~OperationDensityMargTo1DLinear().

void sgpp::datadriven::OperationDensityMargTo1DLinear::margToDimXs ( base::DataVector alpha,
base::Grid *&  grid_x,
base::DataVector *&  alpha_x,
std::vector< size_t > &  dim_x 
)
virtual

Keep applying marginalizes to (Density) Functions, until it's reduced to d dimensions (dim_x)

Parameters
alphaCoefficient vector for current grid
grid_xoutput 1D grid pointer
alpha_xCoefficient vector for new grid (grid_x). Will be initialized.
dim_xTarget dimension, all other dimensions will be marginalized

Implements sgpp::datadriven::OperationDensityMargTo1D.

References sgpp::datadriven::OperationDensityMargTo1D::computeMarginalizationIndices(), sgpp::base::Grid::getDimension(), grid, and marg_next_dim().

Referenced by margToDimX(), and ~OperationDensityMargTo1DLinear().

Member Data Documentation


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