Uses of Class
com.opengamma.strata.basics.value.ValueDerivatives
-
-
Uses of ValueDerivatives in com.opengamma.strata.basics.value
Methods in com.opengamma.strata.basics.value that return ValueDerivatives Modifier and Type Method Description static ValueDerivativesValueDerivatives. of(double value, DoubleArray derivatives)Obtains an instance from a value and array of derivatives.Methods in com.opengamma.strata.basics.value that return types with arguments of type ValueDerivatives Modifier and Type Method Description static org.joda.beans.TypedMetaBean<ValueDerivatives>ValueDerivatives. meta()The meta-bean forValueDerivatives.org.joda.beans.TypedMetaBean<ValueDerivatives>ValueDerivatives. metaBean() -
Uses of ValueDerivatives in com.opengamma.strata.market.surface
Methods in com.opengamma.strata.market.surface that return ValueDerivatives Modifier and Type Method Description ValueDerivativesConstantSurface. firstPartialDerivatives(double x, double y)ValueDerivativesDeformedSurface. firstPartialDerivatives(double x, double y)ValueDerivativesInterpolatedNodalSurface. firstPartialDerivatives(double x, double y)ValueDerivativesSurface. firstPartialDerivatives(double x, double y)Computes the partial derivatives of the surface.Methods in com.opengamma.strata.market.surface that return types with arguments of type ValueDerivatives Modifier and Type Method Description org.joda.beans.MetaProperty<Function<DoublesPair,ValueDerivatives>>DeformedSurface.Meta. deformationFunction()The meta-property for thedeformationFunctionproperty.Function<DoublesPair,ValueDerivatives>DeformedSurface. getDeformationFunction()Gets the deformation function.Method parameters in com.opengamma.strata.market.surface with type arguments of type ValueDerivatives Modifier and Type Method Description DeformedSurface.BuilderDeformedSurface.Builder. deformationFunction(Function<DoublesPair,ValueDerivatives> deformationFunction)Sets the deformation function.static DeformedSurfaceDeformedSurface. of(SurfaceMetadata metadata, Surface originalSurface, Function<DoublesPair,ValueDerivatives> deformationFunction)Obtains an instance. -
Uses of ValueDerivatives in com.opengamma.strata.market.surface.interpolator
Methods in com.opengamma.strata.market.surface.interpolator that return ValueDerivatives Modifier and Type Method Description ValueDerivativesBoundSurfaceInterpolator. firstPartialDerivatives(double x, double y)Computes the partial derivatives of the surface. -
Uses of ValueDerivatives in com.opengamma.strata.math.impl.function
Methods in com.opengamma.strata.math.impl.function that return ValueDerivatives Modifier and Type Method Description ValueDerivativesPiecewisePolynomialFunction1D. evaluateAndDifferentiate(PiecewisePolynomialResult pp, double xKey)Evaluates the function and its first derivative. -
Uses of ValueDerivatives in com.opengamma.strata.pricer.bond
Methods in com.opengamma.strata.pricer.bond that return ValueDerivatives Modifier and Type Method Description ValueDerivativesDiscountingFixedCouponBondProductPricer. dirtyPriceFromYieldAd(ResolvedFixedCouponBond bond, LocalDate settlementDate, double yield)Calculates the dirty price of the fixed coupon bond from yield and its derivative wrt to the yield.ValueDerivativesDiscountingFixedCouponBondProductPricer. modifiedDurationFromYieldAd(ResolvedFixedCouponBond bond, LocalDate settlementDate, double yield)Calculates the modified duration of the fixed coupon bond product from yield and its derivative wrt to the yield.default ValueDerivativesBondYieldVolatilities. priceVolatilityEquivalentAd(double duration, double yieldVolatility)Calculates the price volatility equivalent to the yield volatility and its derivatives.default ValueDerivativesBondYieldVolatilities. priceVolatilityEquivalentAd(double expiry, double duration, double strike, double forward)Calculates the price volatility equivalent to the yield volatility and its derivatives.default ValueDerivativesBondYieldVolatilities. priceVolatilityEquivalentAd(ZonedDateTime expiryDateTime, double duration, double strike, double forward)Calculates the price volatility equivalent to the yield volatility and its derivatives.ValueDerivativesDiscountingFixedCouponBondProductPricer. yieldFromDirtyPriceAd(ResolvedFixedCouponBond bond, LocalDate settlementDate, double dirtyPrice)Calculates the yield of the fixed coupon bond product from dirty price and its derivative wrt the price. -
Uses of ValueDerivatives in com.opengamma.strata.pricer.capfloor
Methods in com.opengamma.strata.pricer.capfloor that return ValueDerivatives Modifier and Type Method Description ValueDerivativesNormalSabrParametersIborCapletFloorletVolatilities. volatilityAdjoint(double expiry, double strike, double forward)ValueDerivativesSabrIborCapletFloorletVolatilities. volatilityAdjoint(double expiry, double strike, double forward)Calculates the volatility and associated sensitivities.ValueDerivativesSabrParametersIborCapletFloorletVolatilities. volatilityAdjoint(double expiry, double strike, double forward) -
Uses of ValueDerivatives in com.opengamma.strata.pricer.fxopt
Methods in com.opengamma.strata.pricer.fxopt that return ValueDerivatives Modifier and Type Method Description ValueDerivativesBlackFxOptionFlatVolatilities. firstPartialDerivatives(CurrencyPair currencyPair, double expiry, double strike, double forward)ValueDerivativesBlackFxOptionSmileVolatilities. firstPartialDerivatives(CurrencyPair currencyPair, double expiry, double strike, double forward)ValueDerivativesBlackFxOptionSurfaceVolatilities. firstPartialDerivatives(CurrencyPair currencyPair, double expiry, double strike, double forward)ValueDerivativesFxOptionVolatilities. firstPartialDerivatives(CurrencyPair currencyPair, double expiry, double strike, double forward)Computes the partial derivatives of the volatilities.ValueDerivativesInterpolatedStrikeSmileDeltaTermStructure. partialFirstDerivatives(double expiry, double strike, double forward)ValueDerivativesSmileDeltaTermStructure. partialFirstDerivatives(double expiry, double strike, double forward)Computes the partial derivatives of the volatilities. -
Uses of ValueDerivatives in com.opengamma.strata.pricer.impl.option
Methods in com.opengamma.strata.pricer.impl.option that return ValueDerivatives Modifier and Type Method Description static ValueDerivativesBlackFormulaRepository. impliedVolatilityAdjoint(double price, double forward, double strike, double timeToExpiry, boolean isCall)Computes the log-normal implied volatility and its derivative with respect to price.static ValueDerivativesBlackFormulaRepository. impliedVolatilityAdjoint(double otmPrice, double forward, double strike, double timeToExpiry, double volGuess)Computes the log-normal (Black) implied volatility of an out-the-money European option starting from an initial guess and the derivative of the volatility w.r.t.static ValueDerivativesNormalFormulaRepository. impliedVolatilityFromBlackApproximatedAdjoint(double forward, double strike, double timeToExpiry, double blackVolatility)Compute the implied volatility using an approximate explicit transformation formula and its derivative with respect to the input Black volatility.static ValueDerivativesBlackFormulaRepository. impliedVolatilityFromNormalApproximatedAdjoint(double forward, double strike, double timeToExpiry, double normalVolatility)Compute the log-normal implied volatility from a normal volatility using an approximate initial guess and a root-finder and compute the derivative of the log-normal volatility with respect to the input normal volatility.ValueDerivativesBlackBarrierPriceFormulaRepository. priceAdjoint(double spot, double strike, double timeToExpiry, double costOfCarry, double rate, double lognormalVol, boolean isCall, SimpleConstantContinuousBarrier barrier)Computes the price and derivatives of a barrier option.static ValueDerivativesBlackFormulaRepository. priceAdjoint(double forward, double strike, double timeToExpiry, double lognormalVol, boolean isCall)Computes the price without numeraire and its derivatives.ValueDerivativesBlackOneTouchAssetPriceFormulaRepository. priceAdjoint(double spot, double timeToExpiry, double costOfCarry, double rate, double lognormalVol, SimpleConstantContinuousBarrier barrier)Computes the price and derivatives of a one-touch/no-touch option.ValueDerivativesBlackOneTouchCashPriceFormulaRepository. priceAdjoint(double spot, double timeToExpiry, double costOfCarry, double rate, double lognormalVol, SimpleConstantContinuousBarrier barrier)Computes the price and derivatives of a one-touch/no-touch option.static ValueDerivativesNormalFormulaRepository. priceAdjoint(double forward, double strike, double timeToExpiry, double normalVol, double numeraire, PutCall putCall)Computes the price and first order derivatives.ValueDerivativesSabrExtrapolationRightFunction. priceAdjointSabr(double strike, PutCall putCall)Computes the option price derivative with respect to the SABR parameters.Methods in com.opengamma.strata.pricer.impl.option that return types with arguments of type ValueDerivatives Modifier and Type Method Description static Pair<ValueDerivatives,double[][]>BlackFormulaRepository. priceAdjoint2(double forward, double strike, double timeToExpiry, double lognormalVol, boolean isCall)Computes the price without numeraire and its derivatives of the first and second order. -
Uses of ValueDerivatives in com.opengamma.strata.pricer.impl.rate.model
Methods in com.opengamma.strata.pricer.impl.rate.model that return ValueDerivatives Modifier and Type Method Description ValueDerivativesHullWhiteOneFactorPiecewiseConstantInterestRateModel. alphaAdjoint(HullWhiteOneFactorPiecewiseConstantParameters data, double startExpiry, double endExpiry, double numeraireTime, double bondMaturity)Calculates the (zero-coupon) bond volatility divided by a bond numeraire, i.e., alpha, for a given period and its derivatives.ValueDerivativesHullWhiteOneFactorPiecewiseConstantInterestRateModel. futuresConvexityFactorAdjoint(HullWhiteOneFactorPiecewiseConstantParameters data, double t0, double t1, double t2)Calculates the future convexity factor and its derivatives with respect to the model volatilities.ValueDerivativesHullWhiteOneFactorPiecewiseConstantInterestRateModel. swapRateDaf1(double x, DoubleArray discountedCashFlowFixed, DoubleArray alphaFixed, DoubleArray discountedCashFlowIbor, DoubleArray alphaIbor)Calculates the first order derivative of the swap rate with respect to thealphaFixedin theP(*,theta)numeraire.ValueDerivativesHullWhiteOneFactorPiecewiseConstantInterestRateModel. swapRateDai1(double x, DoubleArray discountedCashFlowFixed, DoubleArray alphaFixed, DoubleArray discountedCashFlowIbor, DoubleArray alphaIbor)Calculates the first order derivative of the swap rate with respect to thealphaIborin theP(*,theta)numeraire.ValueDerivativesHullWhiteOneFactorPiecewiseConstantInterestRateModel. swapRateDdcff1(double x, DoubleArray discountedCashFlowFixed, DoubleArray alphaFixed, DoubleArray discountedCashFlowIbor, DoubleArray alphaIbor)Calculates the first order derivative of the swap rate with respect to thediscountedCashFlowFixedin theP(*,theta)numeraire.ValueDerivativesHullWhiteOneFactorPiecewiseConstantInterestRateModel. swapRateDdcfi1(double x, DoubleArray discountedCashFlowFixed, DoubleArray alphaFixed, DoubleArray discountedCashFlowIbor, DoubleArray alphaIbor)Calculates the first order derivative of the swap rate with respect to thediscountedCashFlowIborin theP(*,theta)numeraire. -
Uses of ValueDerivatives in com.opengamma.strata.pricer.impl.tree
Methods in com.opengamma.strata.pricer.impl.tree that return ValueDerivatives Modifier and Type Method Description ValueDerivativesTrinomialTree. optionPriceAdjoint(OptionFunction function, RecombiningTrinomialTreeData data)Compute option price and delta under the specified trinomial tree gird. -
Uses of ValueDerivatives in com.opengamma.strata.pricer.impl.volatility.smile
Methods in com.opengamma.strata.pricer.impl.volatility.smile that return ValueDerivatives Modifier and Type Method Description ValueDerivativesSabrHaganNormalVolatilityFormula. volatilityAdjoint(double forward, double strike, double timeToExpiry, double alpha, double beta, double rho, double nu)ValueDerivativesSabrHaganVolatilityFunctionProvider. volatilityAdjoint(double forward, double strike, double timeToExpiry, double alpha, double beta, double rho, double nu)Computes the implied volatility in the SABR model and its derivatives.ValueDerivativesSabrHaganVolatilityFunctionProvider. volatilityAdjoint(double forward, double strike, double timeToExpiry, SabrFormulaData data)Computes the implied volatility in the SABR model and its derivatives.ValueDerivativesSsviVolatilityFunction. volatilityAdjoint(double forward, double strike, double timeToExpiry, SsviFormulaData data)Computes the implied volatility in the SSVI formula and its derivatives.ValueDerivativesVolatilityFunctionProvider. volatilityAdjoint(double forward, double strike, double timeToExpiry, T data)Calculates volatility and the adjoint (volatility sensitivity to forward, strike and model parameters).ValueDerivativesSabrHaganNormalVolatilityFormula. volatilityBeta0Adjoint(double forward, double strike, double timeToExpiry, double alpha, double rho, double nu)Calculates the normal implied volatility and its derivatives (w.r.t.ValueDerivativesSabrHaganNormalVolatilityFormula. volatilityBetaNonZeroAdjoint(double forward, double strike, double timeToExpiry, double alpha, double beta, double rho, double nu)Returns the volatility using the generic formula with barrier at 0 at its derivatives.protected ValueDerivativesSabrHaganNormalVolatilityFormula. zetaOverXhatAdjoint(double zeta, double rho)Computes the ratio zeta over xHat and its derivatives.Methods in com.opengamma.strata.pricer.impl.volatility.smile that return types with arguments of type ValueDerivatives Modifier and Type Method Description List<ValueDerivatives>SabrInArrearsVolatilityFunction. effectiveSabrAd(SabrFormulaData parameters, double tau0, double tau1)The effective SABR parameters from the raw SABR parameters and the times.List<ValueDerivatives>SabrInArrearsVolatilityFunction. effectiveSabrAfterStartAd(SabrFormulaData parameters, double tau0, double tau1)The effective SABR parameters and their derivatives from the raw SABR parameters and the times.List<ValueDerivatives>SabrInArrearsVolatilityFunction. effectiveSabrBeforeStartAd(SabrFormulaData parameters, double tau0, double tau1)The effective SABR parameters and their derivatives from the raw SABR parameters and the times. -
Uses of ValueDerivatives in com.opengamma.strata.pricer.model
Methods in com.opengamma.strata.pricer.model that return ValueDerivatives Modifier and Type Method Description ValueDerivativesHullWhiteOneFactorPiecewiseConstantParametersProvider. alphaAdjoint(LocalDate startDate, LocalDate endDate, LocalDate numeraireDate, LocalDate maturityDate)Calculates the alpha and its derivative values for the specified period with respect to the maturity date.ValueDerivativesHullWhiteOneFactorPiecewiseConstantParametersProvider. futuresConvexityFactorAdjoint(LocalDate referenceDate, LocalDate startDate, LocalDate endDate)Calculates the future convexity factor and its derivative for the specified period at the future reference date.ValueDerivativesSabrInterestRateParameters. volatilityAdjoint(double expiry, double tenor, double strike, double forward)Calculates the volatility and associated sensitivities.ValueDerivativesSabrParameters. volatilityAdjoint(double expiry, double strike, double forward)Calculates the volatility and associated sensitivities.ValueDerivativesSabrVolatilityFormula. volatilityAdjoint(double forward, double strike, double timeToExpiry, double alpha, double beta, double rho, double nu)Calculates volatility and the adjoint (volatility sensitivity to forward, strike and model parameters). -
Uses of ValueDerivatives in com.opengamma.strata.pricer.swap
Methods in com.opengamma.strata.pricer.swap that return ValueDerivatives Modifier and Type Method Description ValueDerivativesDiscountingSwapLegPricer. annuityCash1(int nbPaymentsPerYear, int nbPeriods, double yield)Computes the conventional cash annuity for a given yield and its first derivative with respect to the yield.ValueDerivativesDiscountingSwapLegPricer. annuityCash2(int nbPaymentsPerYear, int nbPeriods, double yield)Computes the conventional cash annuity for a given yield and its first two derivatives with respect to the yield.ValueDerivativesDiscountingSwapLegPricer. annuityCash3(int nbPaymentsPerYear, int nbPeriods, double yield)Computes the conventional cash annuity for a given yield and its first three derivatives with respect to the yield.ValueDerivativesDiscountingSwapLegPricer. annuityCashDerivative(ResolvedSwapLeg fixedLeg, double yield)Computes the derivative of the conventional cash annuity with respect to the yield from a swap leg. -
Uses of ValueDerivatives in com.opengamma.strata.pricer.swaption
Methods in com.opengamma.strata.pricer.swaption that return ValueDerivatives Modifier and Type Method Description ValueDerivativesSabrParametersSwaptionVolatilities. volatilityAdjoint(double expiry, double tenor, double strike, double forward)ValueDerivativesSabrSwaptionVolatilities. volatilityAdjoint(double expiry, double tenor, double strike, double forward)Calculates the volatility and associated sensitivities.
-