/src/main/java/net/finmath/montecarlo/assetderivativevaluation/products/FiniteDifferenceHedgedPortfolio.java
final int numberOfPath  = model.getNumberOfPaths( ) ; final int timeIndexEvaluationTime = model.getTimeIndex( evaluationTime) ;
final int timeIndexEvaluationTime = model.getTimeIndex ( evaluationTime ) ; final int numberOfPath  = model.getNumberOfPaths ( ) ;
this.modelUsedForHedging = modelUsedForHedging; this.hedgeProducts = hedgeProducts; this.hedgeStrategy = hedgeStrategy; } @Override public RandomVariable getValue(final double evaluationTime, final AssetModelMonteCarloSimulationModel model) throws CalculationException { <extra_id_0> final ArrayList<RandomVariable> amountOfHedgeAssets = new ArrayList<>(hedgeProducts.size()); final RandomVariable underlyingToday = model.getAssetValue(0.0,0); final double initialValue = underlyingToday.get(0); final double valueOfOptionAccordingHedgeModel = productToHedge.getValue(modelUsedForHedging); return new RandomVariableFromDoubleArray(evaluationTime, 0.0); }