SG++
sgpp::base::OperationSecondMomentLinear Class Reference

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

#include <OperationSecondMomentLinear.hpp>

Inheritance diagram for sgpp::base::OperationSecondMomentLinear:
sgpp::base::OperationSecondMoment

Public Member Functions

double doQuadrature (DataVector &alpha) override
 Compute second moment of the function

\[ \int_{\Omega} x^2\cdot f(x) dx. \]

. More...

 
 OperationSecondMomentLinear (GridStorage &storage)
 Constructor of OperationSecondMomentLinear. More...
 
 ~OperationSecondMomentLinear () override
 
- Public Member Functions inherited from sgpp::base::OperationSecondMoment
 OperationSecondMoment ()
 Constructor. More...
 
virtual ~OperationSecondMoment ()
 Destructor. More...
 

Protected Attributes

GridStoragestorage
 

Detailed Description

SecondMomemnt of sparse grid function, linear grid without boundaries.

Constructor & Destructor Documentation

sgpp::base::OperationSecondMomentLinear::OperationSecondMomentLinear ( GridStorage storage)
inlineexplicit

Constructor of OperationSecondMomentLinear.

Parameters
storagePointer to the grid's GridStorage object
sgpp::base::OperationSecondMomentLinear::~OperationSecondMomentLinear ( )
inlineoverride

References alpha, and doQuadrature().

Member Function Documentation

double sgpp::base::OperationSecondMomentLinear::doQuadrature ( DataVector alpha)
overridevirtual

Compute second moment of the function

\[ \int_{\Omega} x^2\cdot f(x) dx. \]

.

Parameters
alphaCoefficient vector for current grid

Implements sgpp::base::OperationSecondMoment.

References sgpp::base::HashGridStorage::begin(), sgpp::base::HashGridStorage::end(), sgpp::base::DataVector::get(), sgpp::base::HashGridStorage::getDimension(), sgpp::combigrid::pow(), and storage.

Referenced by ~OperationSecondMomentLinear().

Member Data Documentation

GridStorage& sgpp::base::OperationSecondMomentLinear::storage
protected

Referenced by doQuadrature().


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