Module net.finmath.lib
Class EuropeanOptionWithBoundary.ConstantBarrier
java.lang.Object
net.finmath.montecarlo.assetderivativevaluation.products.EuropeanOptionWithBoundary.ConstantBarrier
- All Implemented Interfaces:
Barrier
- Enclosing class:
- EuropeanOptionWithBoundary
- Author:
- Christian Fries
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBarrierDirection(int timeIndex, RandomVariable[] realizationPredictor)
The barrier direction, i.e.getBarrierLevel(int timeIndex, RandomVariable[] realizationPredictor)
The barrier levelboolean
-
Constructor Details
-
ConstantBarrier
-
-
Method Details
-
getBarrierDirection
public RandomVariableFromDoubleArray[] getBarrierDirection(int timeIndex, RandomVariable[] realizationPredictor)Description copied from interface:Barrier
The barrier direction, i.e. a (stochastic) projection vector for the components)- Specified by:
getBarrierDirection
in interfaceBarrier
- Parameters:
timeIndex
- Time index associated with the model time discretization.realizationPredictor
- Model process realization at timeIndex.- Returns:
- Direction of barrier.
-
getBarrierLevel
public RandomVariableFromDoubleArray getBarrierLevel(int timeIndex, RandomVariable[] realizationPredictor) throws CalculationExceptionDescription copied from interface:Barrier
The barrier level- Specified by:
getBarrierLevel
in interfaceBarrier
- Parameters:
timeIndex
- Time index associated with the model time discretization.realizationPredictor
- Model process realization at timeIndex.- Returns:
- Level of barrier.
- Throws:
CalculationException
- Thrown if the valuation fails, specific cause may be available via thecause()
method.
-
isUpperBarrier
public boolean isUpperBarrier()- Specified by:
isUpperBarrier
in interfaceBarrier
- Returns:
- Returns true, if the barrier is an upper barrier. Returns false, if the barrier is an lower barrier.
-