Class DigitalOptionHestonModelBoundary
java.lang.Object
net.finmath.finitedifference.assetderivativevaluation.boundaries.DigitalOptionHestonModelBoundary
- All Implemented Interfaces:
FiniteDifferenceBoundary
Boundary conditions for
DigitalOption under the
FDMHestonModel.
The boundary asymptotics depend on the exercise style:
- European exercise: discounted continuation asymptotics.
- Bermudan / American exercise: early-exercise asymptotics.
As in the existing two-dimensional equity boundaries, the digital asymptotics are imposed only in the asset direction. In the variance direction, no explicit boundary condition is imposed.
- Author:
- Alessandro Gnoatto
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBoundaryConditionsAtLowerBoundary(FiniteDifferenceEquityProduct product, double time, double... stateVariables) Returns the boundary conditions at the lower boundary.getBoundaryConditionsAtUpperBoundary(FiniteDifferenceEquityProduct product, double time, double... stateVariables) Returns the boundary conditions at the upper boundary.
-
Constructor Details
-
DigitalOptionHestonModelBoundary
Creates the boundary condition associated with a givenFDMHestonModel.- Parameters:
model- The Heston model used to determine risk-free and dividend discount factors.
-
-
Method Details
-
getBoundaryConditionsAtLowerBoundary
public BoundaryCondition[] getBoundaryConditionsAtLowerBoundary(FiniteDifferenceEquityProduct product, double time, double... stateVariables) Description copied from interface:FiniteDifferenceBoundaryReturns the boundary conditions at the lower boundary.The returned array is indexed by state-variable dimension.
- Specified by:
getBoundaryConditionsAtLowerBoundaryin interfaceFiniteDifferenceBoundary- Parameters:
product- The product being valued.time- The running time.stateVariables- The state variables specifying the boundary location.- Returns:
- The lower-boundary conditions by dimension.
-
getBoundaryConditionsAtUpperBoundary
public BoundaryCondition[] getBoundaryConditionsAtUpperBoundary(FiniteDifferenceEquityProduct product, double time, double... stateVariables) Description copied from interface:FiniteDifferenceBoundaryReturns the boundary conditions at the upper boundary.The returned array is indexed by state-variable dimension.
- Specified by:
getBoundaryConditionsAtUpperBoundaryin interfaceFiniteDifferenceBoundary- Parameters:
product- The product being valued.time- The running time.stateVariables- The state variables specifying the boundary location.- Returns:
- The upper-boundary conditions by dimension.
-