Diffpack Documentation


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

SplineSpace Class Reference

representation of spline spaces. More...

#include <SplineSpace.h>

Inheritance diagram for SplineSpace::

HandleId List of all members.

Public Methods

 SplineSpace ()
 SplineSpace (const KnotVec &knots, int k)
 ~SplineSpace ()
bool redim (const KnotVec &kv, int k_)
bool redim (const SplineSpace &space)
bool ok () const
void getKnotVec (VecSimple(real) &kv) const
int order () const
int dimension () const
void print (Os os)
void BSplines (real x, int r, Mat(NUMT) &values, int &miu, bool miuOk=false) const
void BSplineTableA (const VecSimple(real) &x, MatBand(NUMT) &table) const
void BSplineTableA (const VecSimple(real) &x, Mat(NUMT) &table) const

Detailed Description

representation of spline spaces.

NAME: SplineSpace - representation of spline spaces

DESCRIPTION:

The class "SplineSpace" defines a spline space with "k" as order and "knots" as the knot vector we need to build up the B-splines.

The most important function in the class is "BSplines". This function calculates "k" spline basis function values. Derivations are also possible.


Constructor & Destructor Documentation

SplineSpace::SplineSpace ( ) [inline]
 

No special initialization needed.

SplineSpace::SplineSpace ( const KnotVec & knots,
int k )
 

SplineSpace::~SplineSpace ( )
 


Member Function Documentation

void SplineSpace::BSplineTableA ( const VecSimple(real) & x,
Mat(NUMT) & table ) const
 

See documentation of one of the overloaded functions.

void SplineSpace::BSplineTableA ( const VecSimple(real) & x,
MatBand(NUMT) & table ) const
 

fills a "MatBand(real)" if this type of matrix is sent in. This is useful in the usual interpolation cases. It also fills a "Mat(real)" if the input argument is of this type. This function is usually called within the least square interpolation.

void SplineSpace::BSplines ( real x,
int r,
Mat(NUMT) & values,
int & miu,
bool miuOk = false ) const
 

gets k basis spline function values. If a positive integer "r" is sent in, the corresponding derivativeas are calculated instead. In case that "miuOk" gets a "true" value member function "mu" will be skipped.

The function has its quick version designed specially for cubic situation.

int SplineSpace::dimension ( ) const [inline]
 

gives the dimension of the spline space.

void SplineSpace::getKnotVec ( VecSimple(real) & kv ) const
 

returns the distinct knot values inside the knot vector.

bool SplineSpace::ok ( ) const [inline]
 

checks whether the space is ready for usage.

int SplineSpace::order ( ) const [inline]
 

gives the order of the spline space.

void SplineSpace::print ( Os os )
 

prints out the information of order and knot vector.

bool SplineSpace::redim ( const SplineSpace & space )
 

See documentation of one of the overloaded functions.

bool SplineSpace::redim ( const KnotVec & kv,
int k_ ) [inline]
 

rebinds a new knot vector and order of it to the space.


The documentation for this class was generated from the following file:
Copyright © 2003 inuTech GmbH. All rights reserved.