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

Not-a-knot B-spline basis. More...

#include <NakBsplineBasis.hpp>

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

Public Member Functions

double eval (LT l, IT i, double x) override
 
double evalDx (LT l, IT i, double x) override
 
size_t getDegree () const override
 
double getIntegral (LT l, IT i) override
 
double getMean (LT l, IT i, std::shared_ptr< sgpp::base::Distribution > pdf, std::shared_ptr< sgpp::base::DataVector > quadCoordinates, std::shared_ptr< sgpp::base::DataVector > quadWeights)
 
 NakBsplineBasis ()
 Default constructor.
 
 NakBsplineBasis (size_t degree)
 Constructor.
 
 ~NakBsplineBasis () override
 Destructor.
 
- Public Member Functions inherited from sgpp::base::Basis< LT, IT >
virtual ~Basis ()
 Destructor.
 

Protected Attributes

BsplineBasis< LT, IT > bsplineBasis
 B-spline basis for B-spline evaluation.
 

Detailed Description

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

Not-a-knot B-spline basis.

Constructor & Destructor Documentation

◆ NakBsplineBasis() [1/2]

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

Default constructor.

◆ NakBsplineBasis() [2/2]

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

Constructor.

Parameters
degreeB-spline degree, must be odd (if it's even, degree - 1 is used)

References sgpp::base::NakBsplineBasis< LT, IT >::getDegree().

◆ ~NakBsplineBasis()

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

Destructor.

Member Function Documentation

◆ eval()

◆ evalDx()

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

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

References sgpp::base::NakBsplineBasis< LT, IT >::bsplineBasis, and sgpp::base::NakBsplineBasis< LT, IT >::getDegree().

Referenced by sgpp::base::OperationEvalGradientNakBsplineNaive::evalGradient(), and sgpp::base::OperationEvalGradientNakBsplineNaive::evalGradient().

◆ getDegree()

◆ getIntegral()

template<class LT , class IT >
double sgpp::base::NakBsplineBasis< LT, IT >::getIntegral ( LT  l,
IT  i 
)
inlineoverridevirtual

◆ getMean()

template<class LT , class IT >
double sgpp::base::NakBsplineBasis< LT, IT >::getMean ( LT  l,
IT  i,
std::shared_ptr< sgpp::base::Distribution pdf,
std::shared_ptr< sgpp::base::DataVector quadCoordinates,
std::shared_ptr< sgpp::base::DataVector quadWeights 
)
inline
Parameters
llevel of basis function
iindex of basis function
pdfprobability density function
quadCoordinatescoordinates of the quadrature rule to be used
quadWeightsweights of the quadrature rule to be used
Returns
integral of basis function

References sgpp::base::NakBsplineBasis< LT, IT >::getDegree().

Referenced by sgpp::base::OperationWeightedQuadratureNakBspline::doWeightedQuadrature(), and sgpp::base::NakBsplineBasis< LT, IT >::getIntegral().

Member Data Documentation

◆ bsplineBasis

template<class LT , class IT >
BsplineBasis<LT, IT> sgpp::base::NakBsplineBasis< LT, IT >::bsplineBasis
protected

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