Class ZabrFullFdInterpolatedSmileSection
- Namespace
- NanoQL.TermStructures
- Assembly
- NanoQL.dll
QuantLib-Python's ZabrFullFdInterpolatedSmileSection: a
ZabrInterpolatedSmileSection<TEvaluation> with the full finite-difference kernel.
public sealed class ZabrFullFdInterpolatedSmileSection : ZabrInterpolatedSmileSection<ZabrFullFd>
- Inheritance
-
ZabrFullFdInterpolatedSmileSection
- Inherited Members
Methods
Create(Date, double, ReadOnlySpan<double>, bool, double, ReadOnlySpan<double?>, double?, double?, double?, double?, double?, EvaluationContext, bool, bool, bool, bool, bool, bool, EndCriteria?, OptimizationMethod?, DayCounter?)
A section for an option date, whose reference date is the evaluation date, from market volatilities.
public static ZabrFullFdInterpolatedSmileSection Create(Date optionDate, double forward, ReadOnlySpan<double> strikes, bool hasFloatingStrikes, double atmVolatility, ReadOnlySpan<double?> vols, double? alpha, double? beta, double? nu, double? rho, double? gamma, EvaluationContext context, bool isAlphaFixed = false, bool isBetaFixed = false, bool isNuFixed = false, bool isRhoFixed = false, bool isGammaFixed = false, bool vegaWeighted = true, EndCriteria? endCriteria = null, OptimizationMethod? method = null, DayCounter? dc = null)
Parameters
optionDateDateThe option's exercise date.
forwarddoubleThe forward.
strikesReadOnlySpan<double>The strikes, sorted; with floating strikes, the offsets from the forward.
hasFloatingStrikesboolWhether the strikes and the volatilities are offsets and spreads.
atmVolatilitydoubleThe at-the-money volatility, read with floating strikes.
volsReadOnlySpan<double?>The market volatilities, or with floating strikes their spreads; null leaves its strike out of the fit.
alphadouble?The guess or fixed value of α; null for ZABR's default guess.
betadouble?The guess or fixed value of β; null for ZABR's default guess.
nudouble?The guess or fixed value of ν; null for ZABR's default guess.
rhodouble?The guess or fixed value of ρ; null for ZABR's default guess.
gammadouble?The guess or fixed value of γ; null for ZABR's default guess.
contextEvaluationContextThe evaluation context, whose evaluation date is the reference date.
isAlphaFixedboolWhether α is fixed.
isBetaFixedboolWhether β is fixed.
isNuFixedboolWhether ν is fixed.
isRhoFixedboolWhether ρ is fixed.
isGammaFixedboolWhether γ is fixed.
vegaWeightedboolWhether the fit's errors are weighted by vega.
endCriteriaEndCriteriaThe fit's end criteria, or null for ZABR's default.
methodOptimizationMethodThe fit's optimization method, or null for ZABR's default.
dcDayCounterThe day counter, or null for Actual/365 (Fixed).
Returns
- ZabrFullFdInterpolatedSmileSection
The section, with a fixed reference date.
Exceptions
- ArgumentNullException
contextis null.- ArgumentException
The section refuses its arguments.
- NanoQLException
The fit fails.