SG++
sgpp::base::PolyBasis< LT, IT > Class Template Reference

Polynomial basis functions. More...

#include <PolyBasis.hpp>

Inheritance diagram for sgpp::base::PolyBasis< LT, IT >:
sgpp::base::Basis< LT, IT >

Public Member Functions

double eval (LT level, IT index, double p) override
 Evaluate the basis function with given level and index. More...
 
double evalHierToTop (LT level, IT index, DataVector &coeffs, double pos)
 Evaluates all the hierarchical ancestors of the node defined by level and index. More...
 
size_t getDegree ()
 
double getIntegral (LT level, IT index)
 
 PolyBasis (size_t degree)
 Constructor. More...
 
 ~PolyBasis () override
 Destructor. More...
 
- Public Member Functions inherited from sgpp::base::Basis< LT, IT >
virtual ~Basis ()
 Destructor. More...
 

Protected Attributes

size_t degree
 the polynom's max degree More...
 
int * idxtable
 

Detailed Description

template<class LT, class IT>
class sgpp::base::PolyBasis< LT, IT >

Polynomial basis functions.

Version
$HEAD$

Constructor & Destructor Documentation

template<class LT, class IT>
sgpp::base::PolyBasis< LT, IT >::PolyBasis ( size_t  degree)
inlineexplicit

Constructor.

Parameters
degreethe polynom's max. degree
template<class LT, class IT>
sgpp::base::PolyBasis< LT, IT >::~PolyBasis ( )
inlineoverride

Destructor.

Member Function Documentation

template<class LT, class IT>
double sgpp::base::PolyBasis< LT, IT >::eval ( LT  level,
IT  index,
double  x 
)
inlineoverridevirtual
template<class LT, class IT>
double sgpp::base::PolyBasis< LT, IT >::evalHierToTop ( LT  level,
IT  index,
DataVector coeffs,
double  pos 
)
inline

Evaluates all the hierarchical ancestors of the node defined by level and index.

NOTE: It does not evaluate the current node itself.

Parameters
level
index
coeffs
pos
Returns

Referenced by sgpp::base::DehierarchisationPoly::rec(), and sgpp::base::HierarchisationPoly::rec().

Member Data Documentation

template<class LT, class IT>
size_t sgpp::base::PolyBasis< LT, IT >::degree
protected

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