Class MonotonicCubicNaturalSpline
The natural cubic spline with Hyman's monotonicity filter.
public sealed class MonotonicCubicNaturalSpline : CubicInterpolation
- Inheritance
-
MonotonicCubicNaturalSpline
- Inherited Members
- Extension Methods
Remarks
QuantLib's convenience class: a CubicInterpolation with Spline, monotonic true, and second-derivative boundary conditions of 0, which only the spline schemes read.
Constructors
MonotonicCubicNaturalSpline(ReadOnlySpan<double>, ReadOnlySpan<double>)
Initializes a new instance of the MonotonicCubicNaturalSpline class.
public MonotonicCubicNaturalSpline(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.