Class EuropeanOptionGammaPathwise
java.lang.Object
net.finmath.montecarlo.AbstractMonteCarloProduct
net.finmath.montecarlo.assetderivativevaluation.products.AbstractAssetMonteCarloProduct
net.finmath.montecarlo.assetderivativevaluation.products.EuropeanOptionGammaPathwise
- All Implemented Interfaces:
Product, AssetMonteCarloProduct, MonteCarloProduct
Implements calculation of the delta of a European option using the pathwise method.
- Since:
- finmath-lib 4.2.0
- Version:
- 1.0
- Author:
- Christian Fries
-
Constructor Summary
ConstructorsConstructorDescriptionEuropeanOptionGammaPathwise(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 AbstractAssetMonteCarloProduct
getValueMethods inherited from class AbstractMonteCarloProduct
getCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, toString
-
Constructor Details
-
EuropeanOptionGammaPathwise
public EuropeanOptionGammaPathwise(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:
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).
-
-
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
-