Class FritschButlandLogCubic
Log-cubic interpolation with the Fritsch–Butland first-derivative approximation of the logarithms.
public sealed class FritschButlandLogCubic : LogCubicInterpolation
- Inheritance
-
FritschButlandLogCubic
- Inherited Members
- Extension Methods
Remarks
QuantLib's convenience class: a LogCubicInterpolation with FritschButland, monotonic false, and second-derivative boundary conditions of 0, which only the spline schemes read.
Constructors
FritschButlandLogCubic(ReadOnlySpan<double>, ReadOnlySpan<double>)
Initializes a new instance of the FritschButlandLogCubic class.
public FritschButlandLogCubic(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, each positive.
Exceptions
- ArgumentException
The sizes differ, there are too few points, or a y value isn't positive.