#include <splines.h>
Public Member Functions | |
Spline () | |
Spline (const Array1D< double > &knots, const Array1D< double > &coeffs) | |
virtual | ~Spline () |
double | value (const Point< 1 > &p, const unsigned int component=0) const |
void | vector_value (const Point< 1 > &p, Vector< double > &values) const |
Protected Attributes | |
Array1D< double > | knots_ |
Array1D< double > | coeffs_ |
This class models (compactly supported) splines of order d f(x) = sum_{j=0}^n alpha_j N_{j,d}(x) with respect to the nondecreasing knot sequence t_0 <= t_1 <= ... <= t_{n+d}, where N_{j,d}(x) = (t_{j+d}-t_j)[t_j,...,t_{j+d}](.-x)^{d-1}_+ is the j-th (normalized) B-spline of order d.
References: deBoor: A practical guide to splines
MathTL::Spline< d >::Spline | ( | ) | [inline] |
default constructor: splines are real-valued; the default knot sequence is {0,1,...,d}, the default spline is a cardinal B-spline, alpha_j = delta_{j,0}
MathTL::Spline< d >::Spline | ( | const Array1D< double > & | knots, |
const Array1D< double > & | coeffs | ||
) | [inline] |
construct spline from a knot sequence and given coefficients
virtual MathTL::Spline< d >::~Spline | ( | ) | [inline, virtual] |
virtual destructor
double MathTL::Spline< d >::value | ( | const Point< 1 > & | p, |
const unsigned int | component = 0 |
||
) | const [inline] |
value of a spline
void MathTL::Spline< d >::vector_value | ( | const Point< 1 > & | p, |
Vector< double > & | values | ||
) | const [inline] |
value of a spline
Array1D<double> MathTL::Spline< d >::coeffs_ [protected] |
B-spline coefficients
Array1D<double> MathTL::Spline< d >::knots_ [protected] |
knot sequence t_0,...,t_{n+d}