Class ZabrShortMaturityNormalSmileSection
- Namespace
- NanoQL.TermStructures
- Assembly
- NanoQL.dll
QuantLib-Python's ZabrShortMaturityNormalSmileSection: a ZabrSmileSection<TEvaluation> with the
short-maturity normal kernel.
public sealed class ZabrShortMaturityNormalSmileSection : ZabrSmileSection<ZabrShortMaturityNormal>
- Inheritance
-
ZabrShortMaturityNormalSmileSection
- Inherited Members
Constructors
ZabrShortMaturityNormalSmileSection(double, double, ReadOnlySpan<double>, ReadOnlySpan<double>, int)
Initializes a new instance of the ZabrShortMaturityNormalSmileSection class for an exercise time.
public ZabrShortMaturityNormalSmileSection(double timeToExpiry, double forward, ReadOnlySpan<double> zabrParameters, ReadOnlySpan<double> moneyness = default, int fdRefinement = 5)
Parameters
timeToExpirydoubleThe exercise time, positive.
forwarddoubleThe forward.
zabrParametersReadOnlySpan<double>α, β, ν, ρ and γ, in that order; values after the fifth are ignored.
moneynessReadOnlySpan<double>The finite-difference kernels' moneyness grid, which this kernel doesn't read.
fdRefinementintThe finite-difference kernels' refinement, which this kernel doesn't read.
Exceptions
- ArgumentOutOfRangeException
fdRefinementis negative.- ArgumentException
The section refuses its arguments.
Methods
Create(Date, double, ReadOnlySpan<double>, EvaluationContext, DayCounter?, ReadOnlySpan<double>, int)
A section for an exercise date, whose reference date is the evaluation date.
public static ZabrShortMaturityNormalSmileSection Create(Date d, double forward, ReadOnlySpan<double> zabrParameters, EvaluationContext context, DayCounter? dc = null, ReadOnlySpan<double> moneyness = default, int fdRefinement = 5)
Parameters
dDateThe exercise date.
forwarddoubleThe forward.
zabrParametersReadOnlySpan<double>α, β, ν, ρ and γ, in that order.
contextEvaluationContextThe evaluation context, whose evaluation date is the reference date.
dcDayCounterThe day counter of the exercise time, or null for Actual/365 (Fixed).
moneynessReadOnlySpan<double>The finite-difference kernels' moneyness grid, which this kernel doesn't read.
fdRefinementintThe finite-difference kernels' refinement, which this kernel doesn't read.
Returns
- ZabrShortMaturityNormalSmileSection
The section, with a fixed reference date.
Exceptions
- ArgumentNullException
contextis null.- ArgumentOutOfRangeException
fdRefinementis negative.- ArgumentException
The section refuses its arguments.