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:BarrierThe barrier direction, i.e. a (stochastic) projection vector for the components)- Specified by:
getBarrierDirectionin 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:BarrierThe barrier level- Specified by:
getBarrierLevelin 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:
isUpperBarrierin interfaceBarrier- Returns:
- Returns true, if the barrier is an upper barrier. Returns false, if the barrier is an lower barrier.
-