SG++-Doxygen-Documentation
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

size_t getDegree () const override
 Returns the polynomial degree of the basis. More...
 
double stretchedEval (double p, double pos0, double pos1)
 Evaluate a basis function. More...
 
 ~LinearStretchedBasis () override
 Destructor. More...
 
- 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 More...
 
 ~LinearBasis () override
 Destructor. More...
 
- Public Member Functions inherited from sgpp::base::Basis< LT, IT >
virtual ~Basis ()
 Destructor. More...
 

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

◆ 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: