Module net.finmath.lib
Class EuropeanOptionVegaPathwise
java.lang.Object
net.finmath.montecarlo.AbstractMonteCarloProduct
net.finmath.montecarlo.assetderivativevaluation.products.AbstractAssetMonteCarloProduct
net.finmath.montecarlo.assetderivativevaluation.products.EuropeanOptionVegaPathwise
- All Implemented Interfaces:
Product
,AssetMonteCarloProduct
,MonteCarloProduct
Implements calculation of the vega of a European option using the pathwise method.
- Since:
- finmath-lib 4.2.0
- Version:
- 1.0
- Author:
- Christian Fries
-
Constructor Summary
ConstructorsConstructorDescriptionEuropeanOptionVegaPathwise(double maturity, double strike)
Construct a product representing the vega of a European option on an asset S. -
Method Summary
Modifier and TypeMethodDescriptiongetValue(double evaluationTime, AssetModelMonteCarloSimulationModel model)
double
Calculates the vega of the option under a given model using the pathwise method.Methods inherited from class net.finmath.montecarlo.assetderivativevaluation.products.AbstractAssetMonteCarloProduct
getValue
Methods inherited from class net.finmath.montecarlo.AbstractMonteCarloProduct
getCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, toString
-
Constructor Details
-
EuropeanOptionVegaPathwise
public EuropeanOptionVegaPathwise(double maturity, double strike)Construct a product representing the vega of a European option on an asset S. The implementation assumes a Black-Scholes model.- 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 vega of the option under a given model using the pathwise method.- Parameters:
model
- A reference to a model- Returns:
- the value
- Throws:
CalculationException
- Thrown if the valuation fails, specific cause may be available viacause()
.
-
getValue
- Specified by:
getValue
in interfaceAssetMonteCarloProduct
- Specified by:
getValue
in classAbstractAssetMonteCarloProduct
-