public class ImpliedTrinomialTreeFxOptionCalibrator extends Object
| Constructor and Description |
|---|
ImpliedTrinomialTreeFxOptionCalibrator(int nSteps)
Calibrator with the specified number of time steps.
|
| Modifier and Type | Method and Description |
|---|---|
RecombiningTrinomialTreeData |
calibrateTrinomialTree(double timeToExpiry,
CurrencyPair currencyPair,
RatesProvider ratesProvider,
BlackFxOptionVolatilities volatilities)
Calibrate trinomial tree to Black volatilities.
|
RecombiningTrinomialTreeData |
calibrateTrinomialTree(ResolvedFxVanillaOption option,
RatesProvider ratesProvider,
BlackFxOptionVolatilities volatilities)
Calibrate trinomial tree to Black volatilities by using a vanilla option.
|
int |
getNumberOfSteps()
Obtains number of time steps.
|
public ImpliedTrinomialTreeFxOptionCalibrator(int nSteps)
nSteps - number of time stepspublic int getNumberOfSteps()
public RecombiningTrinomialTreeData calibrateTrinomialTree(ResolvedFxVanillaOption option, RatesProvider ratesProvider, BlackFxOptionVolatilities volatilities)
ResolvedFxVanillaOption is typically the underlying option of an exotic instrument to price using the
calibrated tree, and is used to ensure that the grid points properly cover the lifetime of the target option.
option - the vanilla optionratesProvider - the rates providervolatilities - the Black volatility providerpublic RecombiningTrinomialTreeData calibrateTrinomialTree(double timeToExpiry, CurrencyPair currencyPair, RatesProvider ratesProvider, BlackFxOptionVolatilities volatilities)
timeToExpiry determines the coverage of the resulting trinomial tree.
Thus this should match the time to expiry of the target instrument to price using the calibrated tree.
timeToExpiry - the time to expirycurrencyPair - the currency pairratesProvider - the rates providervolatilities - the Black volatility providerCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.