Polynomial interpolation.
More...
#include <yat/regression/PolynomialInterpolation.h>
Polynomial interpolation.
This method should only be used for interpolating small numbers of points because polynomial interpolation introduces large oscillations, even for well-behaved datasets. The number of terms in the interpolating polynomial is equal to the number of points.
- See Also
- Please refer to the base class documentation for genereal introduction to the GSL based interpolation methods.
- Since
- New in yat 0.5
double theplu::yat::regression::GSLInterpolation::evaluate |
( |
double |
x | ) |
|
|
inherited |
Calculate the interpolated value for x.
- Returns
- The interpolated value of for a given point x.
- Exceptions
-
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.
- Returns
- The derivative.
- Exceptions
-
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.
- Returns
- The 2nd derivative.
- Exceptions
-
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 .
- Returns
- The integral.
- Exceptions
-
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.
- Returns
- The latest evaluated value.
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.
- Returns
- The minimum number of points required.
The documentation for this class was generated from the following file: