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).
|
EuropeanOption(String underlyingName,
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).
|
| 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.
|
Map<String,Object> |
getValues(double evaluationTime,
Model model)
Return the valuation of the product using the given model.
|
getValuegetCurrency, getValue, getValue, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, toStringpublic EuropeanOption(String underlyingName, double maturity, double strike)
underlyingName - Name of the underlyingmaturity - 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 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 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.public Map<String,Object> getValues(double evaluationTime, Model model)
ProductgetValues in interface ProductgetValues in interface MonteCarloProductgetValues in class AbstractMonteCarloProductevaluationTime - The evaluation time as double. Cash flows prior and including this time are not considered.model - The model under which the product is valued.Copyright © 2019. All rights reserved.