public class EuropeanOption 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 |
|---|
EuropeanOption(double maturity,
double strike)
Construct a product representing an European option on an asset S (where S the asset with index 0 from the model - single asset case).
|
EuropeanOption(double maturity,
double strike,
int underlyingIndex)
Construct a product representing an European option on an asset S (where S the asset with index 0 from the model - single asset case).
|
| Modifier and Type | Method and Description |
|---|---|
RandomVariableInterface |
getValue(double evaluationTime,
AssetModelMonteCarloSimulationInterface 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, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, toStringpublic EuropeanOption(double maturity,
double strike,
int underlyingIndex)
maturity - The maturity T in the option payoff max(S(T)-K,0)strike - The strike K in the option payoff max(S(T)-K,0).underlyingIndex - The index of the underlying to be fetched from the model.public EuropeanOption(double maturity,
double strike)
maturity - The maturity T in the option payoff max(S(T)-K,0)strike - The strike K in the option payoff max(S(T)-K,0).public RandomVariableInterface getValue(double evaluationTime, AssetModelMonteCarloSimulationInterface model) throws CalculationException
getValue 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 © 2017. All rights reserved.