Class EuropeanOptionVarianceGammaModelBoundary
java.lang.Object
net.finmath.finitedifference.assetderivativevaluation.boundaries.EuropeanOptionVarianceGammaModelBoundary
- All Implemented Interfaces:
FiniteDifferenceBoundary
public class EuropeanOptionVarianceGammaModelBoundary
extends Object
implements FiniteDifferenceBoundary
Boundary conditions for
EuropeanOption under the
FDMVarianceGammaModel.
The class follows the standard factory naming convention
<ProductSimpleName><ModelCoreName>Boundary, so that it can be
instantiated automatically by FDBoundaryFactory.
Since the finite-difference Variance Gamma model is formulated in the stock variable, the standard one-dimensional vanilla outer-domain asymptotics are used.
- Author:
- Alessandro Gnoatto
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the boundary condition associated with a givenFDMVarianceGammaModel. -
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
-
EuropeanOptionVarianceGammaModelBoundary
Creates the boundary condition associated with a givenFDMVarianceGammaModel.- Parameters:
model- The Variance Gamma 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.
-