Interpolation.Akima Spline Method
Creates an Akima cubic spline curve from the specified data points.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0
C#
A CubicSpline object that interpolates the data using the Akima method.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0
public static CubicSpline AkimaSpline(
double[] xValues,
double[] yValues
)Parameters
- xValues Double[]
- The x-coordinates of the data points. Must be strictly increasing.
- yValues Double[]
- The y-coordinates of the data points.
Return Value
CubicSplineA CubicSpline object that interpolates the data using the Akima method.
Remarks
This method creates an Akima spline, which is robust against outliers. The polynomial on each interval is defined using only a limited number of nearby points, so the effect of an anomalous data point doesn't propagate throughout the curve. The curve can be reused for efficient repeated evaluation and supports resampling, differentiation, and integration.
Exceptions
| Argument | xValues or yValues is null. |
| Dimension | The lengths of xValues and yValues do not match. |