Table of Contents

Class HarmonicCubic

Namespace
NanoQL.Numerics
Assembly
NanoQL.dll

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

x ReadOnlySpan<double>

The x values, which must be sorted; at least 2.

y ReadOnlySpan<double>

The y values, one per x value.

Exceptions

ArgumentException

The sizes differ, or there are too few points.