#include <yat/regression/LinearInterpolation.h>
Public Member Functions | |
LinearInterpolation (const utility::VectorBase &x, const utility::VectorBase &y) | |
The default constructor. | |
~LinearInterpolation (void) | |
The destructor. | |
double | evaluate (double x) |
Calculate the interpolated value for x. | |
double | evaluate_derivative (double x) |
Calculate the derivative of the interpolated function at x. | |
double | evaluate_derivative2 (double x) |
Calculate the 2nd derivative of the interpolated function at x. | |
double | evaluate_integral (double a, double b) |
Calculate the numerical integral of the interpolated function over the range . | |
double | evaluation (void) const |
The result of the latest evaluaion function call is stored and can be retrieved with this function. | |
unsigned int | min_size (void) const |
This function returns the minimum number of points required by the interpolation type. |
double theplu::yat::regression::GSLInterpolation::evaluate | ( | double | x | ) | [inherited] |
Calculate the interpolated value for x.
GSL_error | if evaluation is requested outside the range defined by the interpolation algorithm. |
double theplu::yat::regression::GSLInterpolation::evaluate_derivative | ( | double | x | ) | [inherited] |
Calculate the derivative of the interpolated function at x.
GSL_error | if evaluation is requested outside the range defined by the interpolation algorithm. |
double theplu::yat::regression::GSLInterpolation::evaluate_derivative2 | ( | double | x | ) | [inherited] |
Calculate the 2nd derivative of the interpolated function at x.
GSL_error | if evaluation is requested outside the range defined by the interpolation algorithm. |
double theplu::yat::regression::GSLInterpolation::evaluate_integral | ( | double | a, | |
double | b | |||
) | [inherited] |
Calculate the numerical integral of the interpolated function over the range .
GSL_error | if evaluation is requested outside the range defined by the interpolation algorithm. |
double theplu::yat::regression::GSLInterpolation::evaluation | ( | void | ) | const [inherited] |
The result of the latest evaluaion function call is stored and can be retrieved with this function.
unsigned int theplu::yat::regression::GSLInterpolation::min_size | ( | void | ) | const [inherited] |
This function returns the minimum number of points required by the interpolation type.
For example, Akima spline interpolation requires a minimum of 5 points.