Table of Contents

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

blackTS BlackVolTermStructure

The Black volatility surface.

riskFreeTS YieldTermStructure

The risk-free curve.

dividendTS YieldTermStructure

The dividend curve.

underlying double

The underlying's level.

illegalLocalVolOverwrite double

The 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

t double

The time.

strike double

The strike.

Returns

double

The local volatility.