#include <generic_spline1d.h>
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 |
Definition at line 10 of file generic_spline1d.h.
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.
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] |
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 | ) |
Read from parameterMap.
Reimplemented from CBasisFunctionExpansion1d.
Reimplemented in CCorrFtn1dHisto, CBasisSpline1d, CHistogram1d, CPairDistribution1dHisto, CSourceFtn1dBSpline, and CSourceFtn1dHisto.
Definition at line 5 of file generic_spline1d.cc.
bool CGenericSpline1d::setDefaultKnots | ( | void | ) |
Default knot initialization.
Creates default knots The knot list made by this routine has the following properties:.
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).
colloc | vector of collocation points to use as seed The knot list made by this routine has the following properties:
|
Definition at line 59 of file generic_spline1d.cc.
bool CGenericSpline1d::Write | ( | parameterMap & | com | ) |
Reimplemented from CBasisFunctionExpansion1d.
Reimplemented in CCorrFtn1dHisto, CHistogram1d, CPairDistribution1dHisto, CSourceFtn1dBSpline, and CSourceFtn1dHisto.
Definition at line 12 of file generic_spline1d.cc.
Array1D<double> CGenericSpline1d::knots |
Definition at line 12 of file generic_spline1d.h.
Definition at line 13 of file generic_spline1d.h.