Module net.finmath.lib
Class EuropeanOptionGammaLikelihood
java.lang.Object
net.finmath.montecarlo.AbstractMonteCarloProduct
net.finmath.montecarlo.assetderivativevaluation.products.AbstractAssetMonteCarloProduct
net.finmath.montecarlo.assetderivativevaluation.products.EuropeanOptionGammaLikelihood
- All Implemented Interfaces:
Product,AssetMonteCarloProduct,MonteCarloProduct
Implements calculation of the delta of a European option.
- Since:
- finmath-lib 4.2.0
- Version:
- 1.0
- Author:
- Christian Fries
-
Constructor Summary
ConstructorsConstructorDescriptionEuropeanOptionGammaLikelihood(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). -
Method Summary
Modifier and TypeMethodDescriptiongetValue(double evaluationTime, AssetModelMonteCarloSimulationModel model)doubleCalculates the value of the option under a given model.Methods inherited from class net.finmath.montecarlo.assetderivativevaluation.products.AbstractAssetMonteCarloProduct
getValueMethods inherited from class net.finmath.montecarlo.AbstractMonteCarloProduct
getCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, toString
-
Constructor Details
-
EuropeanOptionGammaLikelihood
public EuropeanOptionGammaLikelihood(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).- Parameters:
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)
-
-
Method Details
-
getValue
Calculates the value of the option under a given model.- Parameters:
model- A reference to a model- Returns:
- the value
- Throws:
CalculationException- Thrown if the valuation fails, specific cause may be available via thecause()method.
-
getValue
public RandomVariableAccumulator getValue(double evaluationTime, AssetModelMonteCarloSimulationModel model)- Specified by:
getValuein interfaceAssetMonteCarloProduct- Specified by:
getValuein classAbstractAssetMonteCarloProduct
-