Class CevActiveBoundaryProvider

java.lang.Object
net.finmath.finitedifference.assetderivativevaluation.boundaries.CevActiveBoundaryProvider
All Implemented Interfaces:
TwoStateActiveBoundaryProvider

public class CevActiveBoundaryProvider extends Object implements 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 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: TwoStateActiveBoundaryProvider
      Returns the boundary value at the lower spatial boundary for the active regime.
      Specified by:
      getLowerBoundaryValue in interface TwoStateActiveBoundaryProvider
      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: TwoStateActiveBoundaryProvider
      Returns the boundary value at the upper spatial boundary for the active regime.
      Specified by:
      getUpperBoundaryValue in interface TwoStateActiveBoundaryProvider
      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.