public class DigitalOption extends AbstractAssetMonteCarloProduct
getValue method of this class will return the random variable N(t) * V(T) / N(T),
where N is the numeraire provided by the model. If N(t) is deterministic,
calling getAverage on this random variable will result in the value. Otherwise a
conditional expectation has to be applied.| Constructor and Description |
|---|
DigitalOption(double maturity,
double strike)
Construct a product representing an digital option on an asset S (where S the asset with index 0 from the model - single asset case).
|
DigitalOption(double maturity,
double strike,
int underlyingIndex)
Construct a product representing an digital option on an asset S (where S the asset with index 0 from the model - single asset case).
|
DigitalOption(String nameOfUnderlying,
double maturity,
double strike) |
| Modifier and Type | Method and Description |
|---|---|
RandomVariable |
getValue(double evaluationTime,
AssetModelMonteCarloSimulationModel model)
This method returns the value random variable of the product within the specified model, evaluated at a given evalutationTime.
|
getValuegetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, toStringpublic DigitalOption(double maturity,
double strike,
int underlyingIndex)
maturity - The maturity T in the option payoff indicator(S(T)-K)strike - The strike K in the option payoff indicator(S(T)-K).underlyingIndex - The index of the underlying to be fetched from the model.public DigitalOption(double maturity,
double strike)
maturity - The maturity T in the option payoff indicator(S(T)-K)strike - The strike K in the option payoff indicator(S(T)-K).public DigitalOption(String nameOfUnderlying, double maturity, double strike)
public RandomVariable getValue(double evaluationTime, AssetModelMonteCarloSimulationModel model) throws CalculationException
getValue in interface AssetMonteCarloProductgetValue in class AbstractAssetMonteCarloProductevaluationTime - The time on which this products value should be observed.model - The model used to price the product.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.Copyright © 2019. All rights reserved.