DCMTK  Version 3.6.1 20170228
OFFIS DICOM Toolkit
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Static Public Member Functions | List of all members
DiCubicSpline< T1, T2 > Class Template Reference

Template class for cubic spline interpolation. More...

Static Public Member Functions

static int Function (const T1 *x, const T2 *y, const unsigned int n, T3_ *y2, const T3_ yp1=1.0e30, const T3_ ypn=1.0e30)
 calculate spline function for given points. More...
 
static int Interpolation (const T1 *xa, const T2 *ya, const T3_ *y2a, const unsigned int na, const T1 *x, T2 *y, const unsigned int n)
 perform cubic spline interpolation for given points. More...
 

Detailed Description

template<class T1, class T2>
class DiCubicSpline< T1, T2 >

Template class for cubic spline interpolation.

Member Function Documentation

template<class T1 , class T2 >
static int DiCubicSpline< T1, T2 >::Function ( const T1 *  x,
const T2 *  y,
const unsigned int  n,
T3_ *  y2,
const T3_  yp1 = 1.0e30,
const T3_  ypn = 1.0e30 
)
inlinestatic

calculate spline function for given points.

T1 = type of x coordinates T2 = type of y coordinates T3_ = type of y coordinates of the spline function

Parameters
xarray with x coordinates of given points
yarray with y coordinates of given points
nnumber of entries in array (= points)
y2array used to store the resulting spline function (used for CubicSplineInterpolation)
yp1first derivative of the interpolating function at point 1
ypnfirst derivative of the interpolating function at point n
Returns
true if successful, false otherwise
template<class T1 , class T2 >
static int DiCubicSpline< T1, T2 >::Interpolation ( const T1 *  xa,
const T2 *  ya,
const T3_ *  y2a,
const unsigned int  na,
const T1 *  x,
T2 *  y,
const unsigned int  n 
)
inlinestatic

perform cubic spline interpolation for given points.

T1 = type of x coordinates T2 = type of y coordinates T3_ = type of y coordinates of the spline function

Parameters
xaarray with x coordinates of given points
yaarray with y coordinates of given points
y2aarray used to store the resulting spline function (calculated by CubicSplineFunction)
nanumber of entries in above arrays (xa, ya and y2a)
xarray with x coordinates of points to be interpolated
yarray used to store interpolated values
nnumber of entries in above array (x and y)
Returns
true if successful, false otherwise

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


Generated on Tue Feb 28 2017 for DCMTK Version 3.6.1 20170228 by Doxygen 1.8.8