Class CubicSplineOvershootingMinimization1
The cubic spline minimizing the overshooting of the first derivative.
public sealed class CubicSplineOvershootingMinimization1 : CubicInterpolation
- Inheritance
-
CubicSplineOvershootingMinimization1
- Inherited Members
- Extension Methods
Remarks
QuantLib's convenience class: a CubicInterpolation with SplineOM1, monotonic false, and second-derivative boundary conditions of 0, which only the spline schemes read.
Constructors
CubicSplineOvershootingMinimization1(ReadOnlySpan<double>, ReadOnlySpan<double>)
Initializes a new instance of the CubicSplineOvershootingMinimization1 class.
public CubicSplineOvershootingMinimization1(ReadOnlySpan<double> x, ReadOnlySpan<double> y)
Parameters
xReadOnlySpan<double>The x values, which must be sorted; at least 2.
yReadOnlySpan<double>The y values, one per x value.
Exceptions
- ArgumentException
The sizes differ, or there are too few points.