Class BermudanOption
java.lang.Object
net.finmath.finitedifference.assetderivativevaluation.products.BermudanOption
- All Implemented Interfaces:
FiniteDifferenceEquityProduct, FiniteDifferenceProduct<FiniteDifferenceEquityModel>, Product
Finite difference valuation of a Bermudan option on a single asset.
Exercise times are specified in running time and converted internally to the
solver's time-to-maturity coordinates through
FiniteDifferenceExerciseUtil.
- Author:
- Alessandro Gnoatto
-
Constructor Summary
ConstructorsConstructorDescriptionBermudanOption(double[] exerciseTimes, double strike, double callOrPutSign) Performs the operation.BermudanOption(double[] exerciseTimes, double strike, CallOrPut callOrPutSign) Performs the operation.BermudanOption(String underlyingName, double[] exerciseTimes, double strike, double callOrPutSign) Performs the operation.BermudanOption(String underlyingName, double[] exerciseTimes, double strike, CallOrPut callOrPutSign) Performs the operation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value.Returns the value.doubleReturns the value.doubleReturns the value.Returns the value.double[]getValue(double evaluationTime, FiniteDifferenceEquityModel model) Returns the value.double[][]Returns the value.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FiniteDifferenceEquityProduct
getModelClassMethods inherited from interface FiniteDifferenceProduct
getValue
-
Constructor Details
-
BermudanOption
public BermudanOption(String underlyingName, double[] exerciseTimes, double strike, double callOrPutSign) Performs the operation.- Parameters:
underlyingName- The value.exerciseTimes- The value.strike- The value.callOrPutSign- The value.
-
BermudanOption
-
BermudanOption
public BermudanOption(double[] exerciseTimes, double strike, double callOrPutSign) Performs the operation.- Parameters:
exerciseTimes- The value.strike- The value.callOrPutSign- The value.
-
BermudanOption
Performs the operation.- Parameters:
exerciseTimes- The value.strike- The value.callOrPutSign- The value.
-
-
Method Details
-
getValue
Description copied from interface:FiniteDifferenceProductReturns the value.- Specified by:
getValuein interfaceFiniteDifferenceProduct<FiniteDifferenceEquityModel>- Parameters:
evaluationTime- The value.model- The value.- Returns:
- The value.
-
getValues
Description copied from interface:FiniteDifferenceProductReturns the value.- Specified by:
getValuesin interfaceFiniteDifferenceProduct<FiniteDifferenceEquityModel>- Parameters:
model- The value.- Returns:
- The value.
-
getUnderlyingName
-
getMaturity
public double getMaturity()Returns the value.- Returns:
- The value.
-
getStrike
public double getStrike()Returns the value.- Returns:
- The value.
-
getCallOrPut
-
getExercise
-