SG++-Doxygen-Documentation
Loading...
Searching...
No Matches
sgpp::base::OperationWeightedQuadratureNakPBspline Class Reference

Quadrature on sparse grid. More...

#include <OperationWeightedQuadratureNakPBspline.hpp>

Inheritance diagram for sgpp::base::OperationWeightedQuadratureNakPBspline:
sgpp::base::OperationWeightedQuadrature

Public Member Functions

double doWeightedQuadrature (DataVector &alpha, sgpp::base::DistributionsVector pdfs) override
 Quadrature for not a knot B-spline basis functions w.r.t.
 
 OperationWeightedQuadratureNakPBspline (GridStorage &storage, size_t degree, size_t quadOrder)
 Constructor of OperationQuadratureNakPBspline.
 
 ~OperationWeightedQuadratureNakPBspline () override
 
- Public Member Functions inherited from sgpp::base::OperationWeightedQuadrature
 OperationWeightedQuadrature ()
 Constructor.
 
virtual ~OperationWeightedQuadrature ()
 Destructor.
 

Protected Attributes

SNakPBsplineBase base
 basis object
 
std::shared_ptr< base::DataVectorquadCoordinates
 quadrature rule coordinates
 
size_t quadOrder
 quadrature rule order
 
std::shared_ptr< base::DataVectorquadWeights
 quadrature rule weights
 
GridStoragestorage
 

Detailed Description

Quadrature on sparse grid.

Constructor & Destructor Documentation

◆ OperationWeightedQuadratureNakPBspline()

sgpp::base::OperationWeightedQuadratureNakPBspline::OperationWeightedQuadratureNakPBspline ( GridStorage storage,
size_t  degree,
size_t  quadOrder 
)
inline

Constructor of OperationQuadratureNakPBspline.

Parameters
storagePointer to the grid's GridStorage object
degreethe B-spline degree
quadOrderquadrature order

References sgpp::base::GaussLegendreQuadRule1D::getLevelPointsAndWeightsNormalized(), quadCoordinates, quadOrder, and quadWeights.

◆ ~OperationWeightedQuadratureNakPBspline()

sgpp::base::OperationWeightedQuadratureNakPBspline::~OperationWeightedQuadratureNakPBspline ( )
inlineoverride

Member Function Documentation

◆ doWeightedQuadrature()

double sgpp::base::OperationWeightedQuadratureNakPBspline::doWeightedQuadrature ( DataVector alpha,
sgpp::base::DistributionsVector  pdfs 
)
overridevirtual

Quadrature for not a knot B-spline basis functions w.r.t.

a probability density function

Parameters
alphaCoefficient vector for current grid
pdfsprobability density functions

Implements sgpp::base::OperationWeightedQuadrature.

References alpha, base, sgpp::base::DistributionsVector::get(), sgpp::base::HashGridStorage::getDimension(), sgpp::base::NakPBsplineBasis< LT, IT >::getMean(), sgpp::base::HashGridStorage::getPointIndex(), sgpp::base::HashGridStorage::getPointLevel(), sgpp::base::HashGridStorage::getSize(), quadCoordinates, quadWeights, and storage.

Member Data Documentation

◆ base

SNakPBsplineBase sgpp::base::OperationWeightedQuadratureNakPBspline::base
protected

basis object

Referenced by doWeightedQuadrature().

◆ quadCoordinates

std::shared_ptr<base::DataVector> sgpp::base::OperationWeightedQuadratureNakPBspline::quadCoordinates
protected

quadrature rule coordinates

Referenced by doWeightedQuadrature(), and OperationWeightedQuadratureNakPBspline().

◆ quadOrder

size_t sgpp::base::OperationWeightedQuadratureNakPBspline::quadOrder
protected

quadrature rule order

Referenced by OperationWeightedQuadratureNakPBspline().

◆ quadWeights

std::shared_ptr<base::DataVector> sgpp::base::OperationWeightedQuadratureNakPBspline::quadWeights
protected

quadrature rule weights

Referenced by doWeightedQuadrature(), and OperationWeightedQuadratureNakPBspline().

◆ storage

GridStorage& sgpp::base::OperationWeightedQuadratureNakPBspline::storage
protected

Referenced by doWeightedQuadrature().


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