Interface BlackSwaptionVolatilities
-
- All Superinterfaces:
MarketDataView,ParameterizedData,SwaptionVolatilities
- All Known Implementing Classes:
BlackSwaptionExpiryTenorVolatilities
public interface BlackSwaptionVolatilities extends SwaptionVolatilities
Volatility for swaptions in the log-normal or Black model.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ValueTypegetVolatilityType()Gets the type of volatility returned by theSwaptionVolatilities.volatility(java.time.ZonedDateTime, double, double, double)method.BlackSwaptionVolatilitieswithParameter(int parameterIndex, double newValue)Returns a copy of the data with the value at the specified index altered.BlackSwaptionVolatilitieswithPerturbation(ParameterPerturbation perturbation)Returns a perturbed copy of the data.-
Methods inherited from interface com.opengamma.strata.market.MarketDataView
findData
-
Methods inherited from interface com.opengamma.strata.market.param.ParameterizedData
findParameterIndex, getParameter, getParameterCount, getParameterMetadata
-
Methods inherited from interface com.opengamma.strata.pricer.swaption.SwaptionVolatilities
getConvention, getName, getValuationDate, getValuationDateTime, parameterSensitivity, parameterSensitivity, price, priceDelta, priceGamma, priceTheta, priceVega, relativeTime, tenor, volatility, volatility
-
-
-
-
Method Detail
-
getVolatilityType
default ValueType getVolatilityType()
Description copied from interface:SwaptionVolatilitiesGets the type of volatility returned by theSwaptionVolatilities.volatility(java.time.ZonedDateTime, double, double, double)method.- Specified by:
getVolatilityTypein interfaceSwaptionVolatilities- Returns:
- the type
-
withParameter
BlackSwaptionVolatilities withParameter(int parameterIndex, double newValue)
Description copied from interface:ParameterizedDataReturns a copy of the data with the value at the specified index altered.This instance is immutable and unaffected by this method call.
- Specified by:
withParameterin interfaceParameterizedData- Specified by:
withParameterin interfaceSwaptionVolatilities- Parameters:
parameterIndex- the zero-based index of the parameter to getnewValue- the new value for the specified parameter- Returns:
- a parameterized data instance based on this with the specified parameter altered
-
withPerturbation
BlackSwaptionVolatilities withPerturbation(ParameterPerturbation perturbation)
Description copied from interface:ParameterizedDataReturns a perturbed copy of the data.The perturbation instance will be invoked once for each parameter in this instance, returning the perturbed value for that parameter. The result of this method is a new instance that is based on those perturbed values.
This instance is immutable and unaffected by this method call.
- Specified by:
withPerturbationin interfaceParameterizedData- Specified by:
withPerturbationin interfaceSwaptionVolatilities- Parameters:
perturbation- the perturbation to apply- Returns:
- a parameterized data instance based on this with the specified perturbation applied
-
-