SG++-Doxygen-Documentation
Loading...
Searching...
No Matches
sgpp::base::LinearStretchedBasis< LT, IT > Class Template Reference

linearstretched base functions. More...

#include <LinearStretchedBasis.hpp>

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

Public Member Functions

double evalDx (LT level, IT index, double x) override
 Evaluate the basis functions derivative with given level and index.
 
size_t getDegree () const override
 Returns the polynomial degree of the basis.
 
double stretchedEval (double p, double pos0, double pos1)
 Evaluate a basis function.
 
 ~LinearStretchedBasis () override
 Destructor.
 
- Public Member Functions inherited from sgpp::base::LinearBasis< LT, IT >
double eval (LT l, IT i, double x) override
 
double getIntegral (LT level, IT index) override
 returns the integal of the current basis function
 
 ~LinearBasis () override
 Destructor.
 
- Public Member Functions inherited from sgpp::base::Basis< LT, IT >
virtual ~Basis ()
 Destructor.
 

Detailed Description

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

linearstretched base functions.

And here we have another implicit dependence on tensor products

Constructor & Destructor Documentation

◆ ~LinearStretchedBasis()

template<class LT , class IT >
sgpp::base::LinearStretchedBasis< LT, IT >::~LinearStretchedBasis ( )
inlineoverride

Destructor.

Member Function Documentation

◆ evalDx()

template<class LT , class IT >
double sgpp::base::LinearStretchedBasis< LT, IT >::evalDx ( LT  level,
IT  index,
double  x 
)
inlineoverridevirtual

Evaluate the basis functions derivative with given level and index.

Parameters
levellevel of the basis function
indexindex of the basis function
xevaluation point
Returns
value of the basis functions derivative.

Reimplemented from sgpp::base::LinearBasis< LT, IT >.

◆ getDegree()

template<class LT , class IT >
size_t sgpp::base::LinearStretchedBasis< LT, IT >::getDegree ( ) const
inlineoverridevirtual

Returns the polynomial degree of the basis.

Returns
polynomial degree of the basis

Reimplemented from sgpp::base::LinearBasis< LT, IT >.

◆ stretchedEval()

template<class LT , class IT >
double sgpp::base::LinearStretchedBasis< LT, IT >::stretchedEval ( double  p,
double  pos0,
double  pos1 
)
inline

Evaluate a basis function.

Has a dependence on the absolute position of grid point and support.

double eval(LT level, IT index, double p) { return 1.0 - fabs((1<<level) * p - index); }


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