Class FritschButlandCubic
Cubic interpolation with the Fritsch–Butland first-derivative approximation and Hyman's monotonicity filter.
public sealed class FritschButlandCubic : CubicInterpolation
- Inheritance
-
FritschButlandCubic
- Inherited Members
- Extension Methods
Remarks
QuantLib's convenience class: a CubicInterpolation with FritschButland, monotonic true, and second-derivative boundary conditions of 0, which only the spline schemes read.
Constructors
FritschButlandCubic(ReadOnlySpan<double>, ReadOnlySpan<double>)
Initializes a new instance of the FritschButlandCubic class.
public FritschButlandCubic(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.