Public Types | Public Member Functions

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

#include <interpolation_polynomial_interpolator.h>

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

List of all members.

Public Types

typedef real_type_ real_type

Public Member Functions

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

Detailed Description

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

Polynomial Interpolator. This is an implementation of the algorithm, which is described in Numerical Recipes in C, pp. 108-110.

The original algorithm as it stands in the book have a small error regarding how it tracks its way through the tableau (try to watch what happens if you extrapolate on the right side, that is only want to pick D's). We have corrected this error in our implementation.


Member Typedef Documentation


Constructor & Destructor Documentation

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

Member Function Documentation

template<typename real_type_ >
real_type OpenTissue::interpolation::PolynomialInterpolator< 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::PolynomialInterpolator< 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::PolynomialInterpolator< 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.

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