MathTL
 All Classes Functions Variables Typedefs Enumerations
Public Member Functions | Protected Attributes
MathTL::Spline< d > Class Template Reference

#include <splines.h>

Inheritance diagram for MathTL::Spline< d >:
MathTL::Function< 1 > MathTL::FunctionTime

List of all members.

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_

Detailed Description

template<unsigned int d>
class MathTL::Spline< d >

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


Constructor & Destructor Documentation

template<unsigned int d>
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}

template<unsigned int d>
MathTL::Spline< d >::Spline ( const Array1D< double > &  knots,
const Array1D< double > &  coeffs 
) [inline]

construct spline from a knot sequence and given coefficients

template<unsigned int d>
virtual MathTL::Spline< d >::~Spline ( ) [inline, virtual]

virtual destructor


Member Function Documentation

template<unsigned int d>
double MathTL::Spline< d >::value ( const Point< 1 > &  p,
const unsigned int  component = 0 
) const [inline]

value of a spline

template<unsigned int d>
void MathTL::Spline< d >::vector_value ( const Point< 1 > &  p,
Vector< double > &  values 
) const [inline]

value of a spline


Member Data Documentation

template<unsigned int d>
Array1D<double> MathTL::Spline< d >::coeffs_ [protected]

B-spline coefficients

template<unsigned int d>
Array1D<double> MathTL::Spline< d >::knots_ [protected]

knot sequence t_0,...,t_{n+d}


The documentation for this class was generated from the following file:
 All Classes Functions Variables Typedefs Enumerations