Class NoExceptLocalVolSurface
- Namespace
- NanoQL.TermStructures
- Assembly
- NanoQL.dll
Dupire's local volatility surface that answers a given value where LocalVolSurface refuses, as where the local variance turns negative.
public sealed class NoExceptLocalVolSurface : LocalVolSurface
- Inheritance
-
NoExceptLocalVolSurface
- Inherited Members
- Extension Methods
Remarks
Immutable, as its base. It catches NanoQLException, the refusals of the surface's reads, where
QuantLib's catches its Error.
Constructors
NoExceptLocalVolSurface(BlackVolTermStructure, YieldTermStructure, YieldTermStructure, double, double)
Initializes a new instance of the NoExceptLocalVolSurface class.
public NoExceptLocalVolSurface(BlackVolTermStructure blackTS, YieldTermStructure riskFreeTS, YieldTermStructure dividendTS, double underlying, double illegalLocalVolOverwrite)
Parameters
blackTSBlackVolTermStructureThe Black volatility surface.
riskFreeTSYieldTermStructureThe risk-free curve.
dividendTSYieldTermStructureThe dividend curve.
underlyingdoubleThe underlying's level.
illegalLocalVolOverwritedoubleThe value answered where the surface refuses.
Exceptions
- ArgumentNullException
A structure is null.
Methods
LocalVolImpl(double, double)
The local volatility, or the overwrite where the surface refuses.
protected override double LocalVolImpl(double t, double strike)
Parameters
Returns
- double
The local volatility.