Module net.finmath.lib
Class EuropeanOptionWithBoundary.ConstantBarrier
- java.lang.Object
-
- net.finmath.montecarlo.assetderivativevaluation.products.EuropeanOptionWithBoundary.ConstantBarrier
-
- All Implemented Interfaces:
Barrier
- Enclosing class:
- EuropeanOptionWithBoundary
public class EuropeanOptionWithBoundary.ConstantBarrier extends Object implements Barrier
- Author:
- Christian Fries
-
-
Constructor Summary
Constructors Constructor Description ConstantBarrier(AssetModelMonteCarloSimulationModel scheme)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RandomVariableFromDoubleArray[]getBarrierDirection(int timeIndex, RandomVariable[] realizationPredictor)The barrier direction, i.e.RandomVariableFromDoubleArraygetBarrierLevel(int timeIndex, RandomVariable[] realizationPredictor)The barrier levelbooleanisUpperBarrier()
-
-
-
Constructor Detail
-
ConstantBarrier
public ConstantBarrier(AssetModelMonteCarloSimulationModel scheme)
-
-
Method Detail
-
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 CalculationException
Description 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.
-
-