/src/main/java/net/finmath/montecarlo/assetderivativevaluation/products/FiniteDifferenceDeltaHedgedPortfolio.java
final int numberOfPath  = model.getNumberOfPaths( ) ; final int timeIndexEvaluationTime = model.getTimeIndex( evaluationTime) ;
final int timeIndexEvaluationTime = model.getTimeIndex ( evaluationTime ) ; final int numberOfPath  = model.getNumberOfPaths ( ) ;
super(); this.productToHedge = productToHedge; this.modelUsedForHedging = modelUsedForHedging; } @Override public RandomVariable getValue(final double evaluationTime, final AssetModelMonteCarloSimulationModel model) throws CalculationException { <extra_id_0> final double[] amountOfUderlyingAsset = new double[numberOfPath]; final double[] amountOfNumeraireAsset = new double[numberOfPath]; final RandomVariable underlyingToday = model.getAssetValue(0.0,0); final RandomVariable numeraireToday = model.getNumeraire(0.0); final double initialValueAsset = underlyingToday.get(0); final double initialValueNumeraire = numeraireToday.get(0);