Class NormalSwaptionPhysicalProductPricer
- java.lang.Object
-
- com.opengamma.strata.pricer.swaption.VolatilitySwaptionPhysicalProductPricer
-
- com.opengamma.strata.pricer.swaption.NormalSwaptionPhysicalProductPricer
-
public class NormalSwaptionPhysicalProductPricer extends VolatilitySwaptionPhysicalProductPricer
Pricer for swaption with physical settlement in a normal model on the swap rate.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 has already expired, a negative number is returned by
SwaptionVolatilities.relativeTime(ZonedDateTime)
.
-
-
Field Summary
Fields Modifier and Type Field Description static NormalSwaptionPhysicalProductPricer
DEFAULT
Default implementation.
-
Constructor Summary
Constructors Constructor Description NormalSwaptionPhysicalProductPricer(DiscountingSwapProductPricer swapPricer)
Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
impliedVolatilityFromPresentValue(ResolvedSwaption swaption, RatesProvider ratesProvider, DayCount dayCount, double presentValue)
Computes the implied normal volatility from the present value of a swaption.-
Methods inherited from class com.opengamma.strata.pricer.swaption.VolatilitySwaptionPhysicalProductPricer
currencyExposure, fixedLeg, forwardRate, getSwapPricer, impliedVolatility, presentValue, presentValueDelta, presentValueGamma, presentValueSensitivityModelParamsVolatility, presentValueSensitivityRatesStickyStrike, presentValueTheta, validate, validateSwaption
-
-
-
-
Field Detail
-
DEFAULT
public static final NormalSwaptionPhysicalProductPricer DEFAULT
Default implementation.
-
-
Constructor Detail
-
NormalSwaptionPhysicalProductPricer
public NormalSwaptionPhysicalProductPricer(DiscountingSwapProductPricer swapPricer)
Creates an instance.- Parameters:
swapPricer
- the pricer forSwap
-
-
Method Detail
-
impliedVolatilityFromPresentValue
public double impliedVolatilityFromPresentValue(ResolvedSwaption swaption, RatesProvider ratesProvider, DayCount dayCount, double presentValue)
Computes the implied normal volatility from the present value of a swaption.The guess volatility for the start of the root-finding process is 1%.
- Parameters:
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 product- Returns:
- the implied volatility associated with the present value
-
-