public class AsianOption extends AbstractAssetMonteCarloProduct
| Constructor and Description |
|---|
AsianOption(double maturity,
double strike,
TimeDiscretization timesForAveraging)
Construct a product representing an Asian option on an asset S (where S the asset with index 0 from the model - single asset case).
|
AsianOption(double maturity,
double strike,
TimeDiscretization timesForAveraging,
Integer underlyingIndex)
Construct a product representing an Asian 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.
|
getValuegetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, toStringpublic AsianOption(double maturity,
double strike,
TimeDiscretization timesForAveraging,
Integer underlyingIndex)
strike - The strike K in the option payoff max(A(T)-K,0).maturity - The maturity T in the option payoff maxAS(T)-K,0)timesForAveraging - The times t_i used in the calculation of A(T) = 1/n sum_{i=1,...,n} S(t_i).underlyingIndex - The index of the asset S to be fetched from the modelpublic AsianOption(double maturity,
double strike,
TimeDiscretization timesForAveraging)
strike - The strike K in the option payoff max(A(T)-K,0).maturity - The maturity T in the option payoff maxAS(T)-K,0)timesForAveraging - The times t_i used in the calculation of A(T) = 1/n sum_{i=1,...,n} S(t_i).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.