![]()  | 
  
    SG++-Doxygen-Documentation
    
   | 
 
SecondMomemnt of sparse grid function, linear grid without boundaries. More...
#include <OperationSecondMomentLinear.hpp>
  
 Public Member Functions | |
| double | doQuadrature (DataVector &alpha, DataMatrix *bounds=nullptr) 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 | |
| GridStorage & | storage | 
SecondMomemnt of sparse grid function, linear grid without boundaries.
      
  | 
  inlineexplicit | 
Constructor of OperationSecondMomentLinear.
| storage | Pointer to the grid's GridStorage object | 
      
  | 
  inlineoverride | 
References alpha, and doQuadrature().
      
  | 
  overridevirtual | 
Compute second moment of the function
\[ \int_{\Omega} x^2\cdot f(x) dx. \]
.
| alpha | Coefficient vector for current grid | 
| bounds | describes the boundaries of the hypercube of the original function | 
Implements sgpp::base::OperationSecondMoment.
References sgpp::base::HashGridStorage::begin(), chess::dim, sgpp::base::HashGridStorage::end(), sgpp::base::DataVector::get(), sgpp::base::DataMatrix::get(), sgpp::base::HashGridStorage::getDimension(), sgpp::base::DataMatrix::getNcols(), sgpp::base::DataMatrix::getNrows(), level, sgpp::combigrid::pow(), and storage.
Referenced by ~OperationSecondMomentLinear().
      
  | 
  protected | 
Referenced by doQuadrature().