CGenericSpline1d Class Reference

#include <generic_spline1d.h>

Inheritance diagram for CGenericSpline1d:
[legend]
Collaboration diagram for CGenericSpline1d:
[legend]

List of all members.

Public Member Functions

 CGenericSpline1d (int _l=0, int _m=0, bool r=true, int N=1, double _xmin=0., double _xmax=1.0, int deg=0)
 CGenericSpline1d (const CGenericSpline1d &h)
bool Read (const parameterMap &m)
 Read from parameterMap.
bool Write (parameterMap &m)
 write to parameter map
void CopyState (const CGenericSpline1d &a)
double basisFunction (double, int, int) const
virtual double getLeftSupport (int i) const
virtual double getRightSupport (int i) const
int getKnotToLeft (double x) const
bool setDefaultKnots (void)
 Default knot initialization.
bool setOptimalKnots (const Array1D< double > &colloc)
 Schoenberg-Whitney knots.
bool setDim (int ncoeffs)
 Tool to redim the knots, data and covmtx and keep dimensions in sync. Will hose array contents.
bool checkDim (int splinedeg, int nknots, int ncoeffs) const
 Check if proposed dims are legal.

Public Attributes

Array1D< double > knots
int spline_degree


Detailed Description

Definition at line 10 of file generic_spline1d.h.


Constructor & Destructor Documentation

CGenericSpline1d::CGenericSpline1d ( int  _l = 0,
int  _m = 0,
bool  r = true,
int  N = 1,
double  _xmin = 0.,
double  _xmax = 1.0,
int  deg = 0 
) [inline]

Definition at line 16 of file generic_spline1d.h.

CGenericSpline1d::CGenericSpline1d ( const CGenericSpline1d h  )  [inline]

Definition at line 18 of file generic_spline1d.h.


Member Function Documentation

double CGenericSpline1d::basisFunction ( double  ,
int  ,
int   
) const [inline, virtual]

Implements CBasisFunctionExpansion1d.

Reimplemented in CBasisSpline1d, and CHistogram1d.

Definition at line 29 of file generic_spline1d.h.

bool CGenericSpline1d::checkDim ( int  splinedeg,
int  nknots,
int  ncoeffs 
) const [inline]

Check if proposed dims are legal.

Definition at line 55 of file generic_spline1d.h.

void CGenericSpline1d::CopyState ( const CGenericSpline1d a  ) 

Definition at line 19 of file generic_spline1d.cc.

int CGenericSpline1d::getKnotToLeft ( double  x  )  const

Definition at line 26 of file generic_spline1d.cc.

virtual double CGenericSpline1d::getLeftSupport ( int  i  )  const [inline, virtual]

Implements CBasisFunctionExpansion1d.

Reimplemented in CBasisSpline1d, and CHistogram1d.

Definition at line 33 of file generic_spline1d.h.

virtual double CGenericSpline1d::getRightSupport ( int  i  )  const [inline, virtual]

Implements CBasisFunctionExpansion1d.

Reimplemented in CBasisSpline1d, and CHistogram1d.

Definition at line 37 of file generic_spline1d.h.

bool CGenericSpline1d::Read ( const parameterMap m  ) 

bool CGenericSpline1d::setDefaultKnots ( void   ) 

Default knot initialization.

Creates default knots The knot list made by this routine has the following properties:.

  • the first spline_degree+1 knots are fixed to xmin
  • the last spline_degree+1 knots are fixed to xmax
  • the rest of the knots are equally spaced between xmin and xmax
    Warning:
    Routine does not check that $ xmin <= xmax$

Reimplemented in CHistogram1d.

Definition at line 41 of file generic_spline1d.cc.

bool CGenericSpline1d::setDim ( int  ncoeffs  )  [virtual]

Tool to redim the knots, data and covmtx and keep dimensions in sync. Will hose array contents.

Reimplemented from CBasisFunctionExpansion1d.

Reimplemented in CBasisSpline1d.

Definition at line 78 of file generic_spline1d.cc.

bool CGenericSpline1d::setOptimalKnots ( const Array1D< double > &  colloc  ) 

Schoenberg-Whitney knots.

Creates Schoenberg-Whitney, aka optimal, knots (emulating behavior of de Boor's SPLOPT).

Parameters:
colloc vector of collocation points to use as seed The knot list made by this routine has the following properties:
  • the first bspline_degree+1 knots are fixed to colloc[0]
  • the last bspline_degree+1 knots are fixed to colloc[colloc.dim()-1]
  • the rest of the knots are set according to Eq. XIII.28 in de Boor's "Practical Guide to Splines"
Warning:
Routine will fail if colloc not big enough & routine doesn't check if colloc is ordered like it should be

Definition at line 59 of file generic_spline1d.cc.

bool CGenericSpline1d::Write ( parameterMap com  ) 


Member Data Documentation

Definition at line 12 of file generic_spline1d.h.

Definition at line 13 of file generic_spline1d.h.


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

Generated on Fri Feb 6 13:30:17 2009 for CorAL by  doxygen 1.5.8