public class NormalSwaptionCashParYieldProductPricer extends VolatilitySwaptionCashParYieldProductPricer
The swap underlying the swaption must have a fixed leg on which the forward rate is computed. The underlying swap must be single currency.
The volatility parameters are not adjusted for the underlying swap convention.
The value of the swaption after expiry is 0.
For a swaption which already expired, negative number is returned by
SwaptionVolatilities.relativeTime(ZonedDateTime).
| Modifier and Type | Field and Description |
|---|---|
static NormalSwaptionCashParYieldProductPricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
NormalSwaptionCashParYieldProductPricer(DiscountingSwapProductPricer swapPricer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
impliedVolatilityFromPresentValue(ResolvedSwaption swaption,
RatesProvider ratesProvider,
DayCount dayCount,
double presentValue)
Computes the implied normal volatility from the present value of a swaption.
|
calculateNumeraire, calculateStrike, currencyExposure, fixedLeg, forwardRate, getSwapPricer, impliedVolatility, presentValue, presentValueDelta, presentValueGamma, presentValueSensitivityModelParamsVolatility, presentValueSensitivityRatesStickyStrike, presentValueTheta, validate, validateSwaptionpublic static final NormalSwaptionCashParYieldProductPricer DEFAULT
public NormalSwaptionCashParYieldProductPricer(DiscountingSwapProductPricer swapPricer)
swapPricer - the pricer for Swappublic double impliedVolatilityFromPresentValue(ResolvedSwaption swaption, RatesProvider ratesProvider, DayCount dayCount, double presentValue)
The guess volatility for the start of the root-finding process is 1%.
swaption - the productratesProvider - the rates providerdayCount - the day-count used to estimate the time between valuation date and swaption expirypresentValue - the present value of the swaption productCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.