Class CevActiveBoundaryProvider
java.lang.Object
net.finmath.finitedifference.assetderivativevaluation.boundaries.CevActiveBoundaryProvider
- All Implemented Interfaces:
TwoStateActiveBoundaryProvider
Active-state outer boundary provider for the direct two-state knock-in solver
under a CEV-type equity model.
The active state represents the post-activation value, i.e. the corresponding vanilla European option after the barrier has been hit.
This provider uses the same vanilla asymptotic structure as the existing 1D CEV boundary treatment:
- Lower boundary:
- call: 0
- put: K exp(-r(T-t))
- Upper boundary:
- call: S - K exp(-r(T-t))
- put: 0
-
Constructor Summary
ConstructorsConstructorDescriptionCevActiveBoundaryProvider(FiniteDifferenceEquityModel model, double strike, double maturity, CallOrPut callOrPut) Performs the operation. -
Method Summary
Modifier and TypeMethodDescriptiondoublegetLowerBoundaryValue(double time, double stateVariable) Returns the boundary value at the lower spatial boundary for the active regime.doublegetUpperBoundaryValue(double time, double stateVariable) Returns the boundary value at the upper spatial boundary for the active regime.
-
Constructor Details
-
CevActiveBoundaryProvider
public CevActiveBoundaryProvider(FiniteDifferenceEquityModel model, double strike, double maturity, CallOrPut callOrPut) Performs the operation.- Parameters:
model- The value.strike- The value.maturity- The value.callOrPut- The value.
-
-
Method Details
-
getLowerBoundaryValue
public double getLowerBoundaryValue(double time, double stateVariable) Description copied from interface:TwoStateActiveBoundaryProviderReturns the boundary value at the lower spatial boundary for the active regime.- Specified by:
getLowerBoundaryValuein interfaceTwoStateActiveBoundaryProvider- Parameters:
time- The evaluation time.stateVariable- The state variable at the lower boundary.- Returns:
- The boundary value at the lower boundary in the active regime.
-
getUpperBoundaryValue
public double getUpperBoundaryValue(double time, double stateVariable) Description copied from interface:TwoStateActiveBoundaryProviderReturns the boundary value at the upper spatial boundary for the active regime.- Specified by:
getUpperBoundaryValuein interfaceTwoStateActiveBoundaryProvider- Parameters:
time- The evaluation time.stateVariable- The state variable at the upper boundary.- Returns:
- The boundary value at the upper boundary in the active regime.
-