SG++-Doxygen-Documentation
sgpp::base::OperationFirstMomentModBspline Class Reference

FirstMomemnt of sparse grid function, linear grid without boundaries. More...

#include <OperationFirstMomentModBspline.hpp>

Inheritance diagram for sgpp::base::OperationFirstMomentModBspline:

## Public Member Functions

double doQuadrature (const DataVector &alpha, DataMatrix *bounds=nullptr) override
Compute first moment of the function

$\int_{\Omega} x\cdot f(x) dx.$

OperationFirstMomentModBspline (Grid *grid)
Constructor of OperationFirstMomentModBspline. More...

~OperationFirstMomentModBspline () override

Public Member Functions inherited from sgpp::base::OperationFirstMoment
OperationFirstMoment ()
Constructor. More...

virtual ~OperationFirstMoment ()
Destructor. More...

## Protected Attributes

sgpp::base::Gridgrid

## Detailed Description

FirstMomemnt of sparse grid function, linear grid without boundaries.

## Constructor & Destructor Documentation

 sgpp::base::OperationFirstMomentModBspline::OperationFirstMomentModBspline ( Grid * grid )
inlineexplicit

Constructor of OperationFirstMomentModBspline.

Parameters
 grid Pointer to a sparse grid object
 sgpp::base::OperationFirstMomentModBspline::~OperationFirstMomentModBspline ( )
inlineoverride

## Member Function Documentation

 double sgpp::base::OperationFirstMomentModBspline::doQuadrature ( const DataVector & alpha, DataMatrix * bounds = nullptr )
overridevirtual

Compute first moment of the function

$\int_{\Omega} x\cdot f(x) dx.$

.

Parameters
 alpha Coefficient vector for current grid bounds describes the boundaries of the hypercube of the original function

Implements sgpp::base::OperationFirstMoment.

Referenced by ~OperationFirstMomentModBspline().

## Member Data Documentation

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