Class FlatVolFunctions
The flat-volatility model's covariance function.
public static class FlatVolFunctions
- Inheritance
-
FlatVolFunctions
- Inherited Members
Methods
FlatVolCovariance(double, double, double, double, double, double)
The covariance over [t1, t2] of two rates with constant volatilities, each until its own fixing time: the time both are alive within the interval times the volatilities.
public static double FlatVolCovariance(double t1, double t2, double T, double S, double v1, double v2)
Parameters
t1doubleThe interval's start.
t2doubleThe interval's end, not before its start.
TdoubleThe first rate's fixing time.
SdoubleThe second rate's fixing time.
v1doubleThe first rate's volatility.
v2doubleThe second rate's volatility.
Returns
- double
The covariance.
Exceptions
- ArgumentException
The interval's bounds are in reverse order.