SG++-Doxygen-Documentation
sgpp::base::BsplineBasis< LT, IT > Class Template Reference

B-spline basis on Noboundary grids. More...

#include <BsplineBasis.hpp>

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

Public Member Functions

 BsplineBasis ()
 Default constructor. More...
 
 BsplineBasis (size_t degree)
 Constructor. More...
 
double eval (LT l, IT i, double x) override
 
double evalDx (LT l, IT i, double x)
 
double evalDxDx (LT l, IT i, double x)
 
size_t getDegree () const override
 
double getIntegral (LT level, IT index) override
 
double uniformBSpline (double x, size_t p) const
 
double uniformBSplineDx (double x, size_t p) const
 
double uniformBSplineDxDx (double x, size_t p) const
 
 ~BsplineBasis () override
 Destructor. More...
 
- Public Member Functions inherited from sgpp::base::Basis< LT, IT >
virtual ~Basis ()
 Destructor. More...
 

Protected Attributes

size_t degree
 degree of the B-spline More...
 

Detailed Description

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

B-spline basis on Noboundary grids.

Constructor & Destructor Documentation

template<class LT, class IT>
sgpp::base::BsplineBasis< LT, IT >::BsplineBasis ( )
inline

Default constructor.

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

Constructor.

Parameters
degreeB-spline degree, must be odd (if it's even, degree - 1 is used)
template<class LT, class IT>
sgpp::base::BsplineBasis< LT, IT >::~BsplineBasis ( )
inlineoverride

Destructor.

Member Function Documentation

template<class LT, class IT>
double sgpp::base::BsplineBasis< LT, IT >::evalDx ( LT  l,
IT  i,
double  x 
)
inline
template<class LT, class IT>
double sgpp::base::BsplineBasis< LT, IT >::evalDxDx ( LT  l,
IT  i,
double  x 
)
inline
Parameters
llevel of basis function
iindex of basis function
xevaluation point
Returns
value of 2nd derivative of B-spline basis function

Referenced by sgpp::base::OperationEvalHessianBsplineNaive::evalHessian().

template<class LT, class IT>
size_t sgpp::base::BsplineBasis< LT, IT >::getDegree ( ) const
inlineoverridevirtual
Returns
B-spline degree

Implements sgpp::base::Basis< LT, IT >.

template<class LT, class IT>
double sgpp::base::BsplineBasis< LT, IT >::getIntegral ( LT  level,
IT  index 
)
inlineoverridevirtual
Parameters
levellevel of basis function
indexindex of basis function
Returns
value of the Integral

Implements sgpp::base::Basis< LT, IT >.

Referenced by sgpp::base::OperationQuadratureBspline::doQuadrature().

template<class LT, class IT>
double sgpp::base::BsplineBasis< LT, IT >::uniformBSplineDx ( double  x,
size_t  p 
) const
inline
Parameters
xevaluation point
pB-spline degree
Returns
value of derivative of uniform B-spline (with knots \(\{0, 1, ..., p+1\}\))

Referenced by sgpp::base::BsplineBasis< unsigned int, unsigned int >::evalDx().

template<class LT, class IT>
double sgpp::base::BsplineBasis< LT, IT >::uniformBSplineDxDx ( double  x,
size_t  p 
) const
inline
Parameters
xevaluation point
pB-spline degree
Returns
value of 2nd derivative of uniform B-spline (with knots \(\{0, 1, ..., p+1\}\))

Referenced by sgpp::base::BsplineBasis< unsigned int, unsigned int >::evalDxDx().

Member Data Documentation


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