Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

CubicSpline Class Reference

Cubic spline interpolation. More...

List of all members.

Public Member Functions

 CubicSpline ()
 Default constructor - CubicSpline::Init() should be called afterwards.

 CubicSpline (const CrystVector_REAL &x, const CrystVector_REAL &y, const REAL yp1, const REAL ypn)
 Spline with given extremum derivatives.

 CubicSpline (const REAL *px, const REAL *py, const unsigned long nbPoints, const REAL yp1, const REAL ypn)
 Spline with given extremum derivatives.

 CubicSpline (const CrystVector_REAL &x, const CrystVector_REAL &y)
 Natural cubic spline.

 CubicSpline (const REAL *px, const REAL *py, const unsigned long nbPoints)
 Natural cubic spline.

 ~CubicSpline ()
void Init (const CrystVector_REAL &x, const CrystVector_REAL &y, const REAL yp1, const REAL ypn)
 Spline with given extremum derivatives.

void Init (const REAL *px, const REAL *py, const unsigned long nbPoints, const REAL yp1, const REAL ypn)
 Spline with given extremum derivatives.

void Init (const CrystVector_REAL &x, const CrystVector_REAL &y)
 Natural cubic spline.

void Init (const REAL *px, const REAL *py, const unsigned long nbPoints)
 Natural cubic spline.

CrystVector_REAL operator() (const CrystVector_REAL &x) const
 Get spline value at a series of point - x is assumed to be sorted by increasing values.

CrystVector_REAL operator() (const REAL min, const REAL step, const long nbpoint) const
 Get spline value on a range of values with a fixed step.

REAL operator() (const REAL x) const
 Get spline value at one point.


Private Member Functions

void InitSpline (const REAL yp1, const REAL ypn)
void InitNaturalSpline ()

Private Attributes

CrystVector_REAL mX
CrystVector_REAL mY
CrystVector_REAL mYsecond


Detailed Description

Cubic spline interpolation.


Constructor & Destructor Documentation

CubicSpline::CubicSpline  ) 
 

Default constructor - CubicSpline::Init() should be called afterwards.

CubicSpline::CubicSpline const CrystVector_REAL &  x,
const CrystVector_REAL &  y,
const REAL  yp1,
const REAL  ypn
 

Spline with given extremum derivatives.

CubicSpline::CubicSpline const REAL *  px,
const REAL *  py,
const unsigned long  nbPoints,
const REAL  yp1,
const REAL  ypn
 

Spline with given extremum derivatives.

CubicSpline::CubicSpline const CrystVector_REAL &  x,
const CrystVector_REAL &  y
 

Natural cubic spline.

CubicSpline::CubicSpline const REAL *  px,
const REAL *  py,
const unsigned long  nbPoints
 

Natural cubic spline.

CubicSpline::~CubicSpline  ) 
 


Member Function Documentation

void CubicSpline::Init const REAL *  px,
const REAL *  py,
const unsigned long  nbPoints
 

Natural cubic spline.

void CubicSpline::Init const CrystVector_REAL &  x,
const CrystVector_REAL &  y
 

Natural cubic spline.

void CubicSpline::Init const REAL *  px,
const REAL *  py,
const unsigned long  nbPoints,
const REAL  yp1,
const REAL  ypn
 

Spline with given extremum derivatives.

void CubicSpline::Init const CrystVector_REAL &  x,
const CrystVector_REAL &  y,
const REAL  yp1,
const REAL  ypn
 

Spline with given extremum derivatives.

void CubicSpline::InitNaturalSpline  )  [private]
 

void CubicSpline::InitSpline const REAL  yp1,
const REAL  ypn
[private]
 

REAL CubicSpline::operator() const REAL  x  )  const
 

Get spline value at one point.

CrystVector_REAL CubicSpline::operator() const REAL  min,
const REAL  step,
const long  nbpoint
const
 

Get spline value on a range of values with a fixed step.

CrystVector_REAL CubicSpline::operator() const CrystVector_REAL &  x  )  const
 

Get spline value at a series of point - x is assumed to be sorted by increasing values.


Member Data Documentation

CrystVector_REAL CubicSpline::mX [private]
 

CrystVector_REAL CubicSpline::mY [private]
 

CrystVector_REAL CubicSpline::mYsecond [private]
 


The documentation for this class was generated from the following file:
Generated on Tue Nov 14 15:03:40 2006 for ObjCryst++ by doxygen 1.3.6