yat
0.14.5pre
|
Cubic spline with periodic boundary conditions. More...
#include <yat/regression/CSplinePeriodicInterpolation.h>
Public Member Functions | |
CSplinePeriodicInterpolation (const utility::VectorBase &x, const utility::VectorBase &y) | |
The default constructor. | |
~CSplinePeriodicInterpolation (void) | |
The destructor. | |
double | evaluate (double x) |
Calculate the interpolated value for x. More... | |
double | evaluate_derivative (double x) |
Calculate the derivative of the interpolated function at x. More... | |
double | evaluate_derivative2 (double x) |
Calculate the 2nd derivative of the interpolated function at x. More... | |
double | evaluate_integral (double a, double b) |
Calculate the numerical integral of the interpolated function over the range . More... | |
double | evaluation (void) const |
The result of the latest evaluaion function call is stored and can be retrieved with this function. More... | |
unsigned int | min_size (void) const |
This function returns the minimum number of points required by the interpolation type. More... | |
Cubic spline with periodic boundary conditions.
The resulting curve is piecewise cubic on each interval, with matching first and second derivatives at the supplied data-points. The derivatives at the first and last points are also matched. Note that the last point in the data must have the same y-value as the first point, otherwise the resulting periodic interpolation will have a discontinuity at the boundary.
|
inherited |
Calculate the interpolated value for x.
GSL_error | if evaluation is requested outside the range defined by the interpolation algorithm. |
|
inherited |
Calculate the derivative of the interpolated function at x.
GSL_error | if evaluation is requested outside the range defined by the interpolation algorithm. |
|
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. |
|
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. |
|
inherited |
The result of the latest evaluaion function call is stored and can be retrieved with this function.
|
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.