Class HarmonicCubic
Cubic interpolation with the weighted harmonic mean as the first-derivative approximation.
public sealed class HarmonicCubic : CubicInterpolation
- Inheritance
-
HarmonicCubic
- Inherited Members
- Extension Methods
Remarks
QuantLib's convenience class: a CubicInterpolation with Harmonic, monotonic false, and second-derivative boundary conditions of 0, which only the spline schemes read.
Constructors
HarmonicCubic(ReadOnlySpan<double>, ReadOnlySpan<double>)
Initializes a new instance of the HarmonicCubic class.
public HarmonicCubic(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.