public class DigitalOptionDeltaLikelihood extends AbstractAssetMonteCarloProduct
| Constructor and Description |
|---|
DigitalOptionDeltaLikelihood(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.
|
getValuegetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, toStringpublic DigitalOptionDeltaLikelihood(double maturity,
double strike)
strike - The strike K in the option payoff max(S(T)-K,0).maturity - The maturity T 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.Copyright © 2019. All rights reserved.