Class PiecewiseConstantAbcdVariance
The piecewise-constant variance of the rate resetting at a given rate time under an abcd volatility: each step to the reset the abcd function's variance over the step, 0 after it.
public sealed class PiecewiseConstantAbcdVariance : PiecewiseConstantVariance
- Inheritance
-
PiecewiseConstantAbcdVariance
- Inherited Members
Remarks
Immutable. QuantLib's getABCD out-parameters are GetABCD()'s record. Rate times QuantLib
allocates its vectors from before checking them, an empty set among them, are refused with QuantLib's check of the
times.
Constructors
PiecewiseConstantAbcdVariance(double, double, double, double, int, ReadOnlySpan<double>)
Initializes a new instance of the PiecewiseConstantAbcdVariance class.
public PiecewiseConstantAbcdVariance(double a, double b, double c, double d, int resetIndex, ReadOnlySpan<double> rateTimes)
Parameters
adoubleThe abcd function's a.
bdoubleThe abcd function's b.
cdoubleThe abcd function's c.
ddoubleThe abcd function's d.
resetIndexintThe rate time the rate resets at, below the number of rate times less one.
rateTimesReadOnlySpan<double>The rate times, at least two, strictly increasing and positive.
Exceptions
- ArgumentException
The rate times aren't strictly increasing positive times, or fewer than two, or the abcd parameters are outside their domain.
- ArgumentOutOfRangeException
resetIndexisn't below the rate times less one.
Properties
RateTimes
Gets the rate times ending the steps.
public override ImmutableArray<double> RateTimes { get; }
Property Value
Variances
Gets each step's variance.
public override ImmutableArray<double> Variances { get; }
Property Value
Volatilities
Gets each step's volatility.
public override ImmutableArray<double> Volatilities { get; }
Property Value
Methods
GetABCD()
The abcd function's parameters.
public AbcdCoefficients GetABCD()
Returns
- AbcdCoefficients
The parameters, QuantLib's
getABCDout-parameters.