Public Types | Public Member Functions

OpenTissue::interpolation::SplineInterpolator< real_type_ > Class Template Reference

#include <interpolation_spline_interpolator.h>

Inheritance diagram for OpenTissue::interpolation::SplineInterpolator< real_type_ >:
OpenTissue::interpolation::BaseInterpolator< SplineInterpolator< real_type_ >, real_type_ >

List of all members.

Public Types

typedef real_type_ real_type

Public Member Functions

 SplineInterpolator ()
 ~SplineInterpolator ()
void set_tableau (real_type *x, real_type *y, int cnt)
void set_tableau (real_type *x, real_type *y, int cnt, real_type yDerivStart, real_type yDerivEnd)
real_type get_value (real_type const &x)
real_type get_error_estimate () const

Detailed Description

template<typename real_type_>
class OpenTissue::interpolation::SplineInterpolator< real_type_ >

Spline Interpolation. This is an implementation of the algorithm, which is described in Numerical Recipes in C, pp. 113-116.


Member Typedef Documentation


Constructor & Destructor Documentation

template<typename real_type_ >
OpenTissue::interpolation::SplineInterpolator< real_type_ >::SplineInterpolator (  )  [inline]
template<typename real_type_ >
OpenTissue::interpolation::SplineInterpolator< real_type_ >::~SplineInterpolator (  )  [inline]

Member Function Documentation

template<typename real_type_ >
real_type OpenTissue::interpolation::SplineInterpolator< real_type_ >::get_error_estimate (  )  const [inline]

Error Estimate Method.

Returns:
The value of the error estimate.
template<typename real_type_ >
real_type OpenTissue::interpolation::SplineInterpolator< real_type_ >::get_value ( real_type const &  x  )  [inline]

Get Interpolation Value.

Parameters:
x The point at which the interpolated or extrapolated value should be found at.
Returns:
The interpolated (or extrapolated) value at the point x.
template<typename real_type_ >
void OpenTissue::interpolation::SplineInterpolator< real_type_ >::set_tableau ( real_type x,
real_type y,
int  cnt 
) [inline]

Set Tableau Method.

Parameters:
x The array of parameter values.
y The array of corresponding function values. Must have same length as the x-array.
template<typename real_type_ >
void OpenTissue::interpolation::SplineInterpolator< real_type_ >::set_tableau ( real_type x,
real_type y,
int  cnt,
real_type  yDerivStart,
real_type  yDerivEnd 
) [inline]

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