/src/main/java/net/finmath/montecarlo/assetderivativevaluation/products/FiniteDifferenceDeltaHedgedPortfolio.java
final double underlyingValue = underlyingToday.get( path) ;
final double underlyingValue = underlyingAtEvaluationTime.get ( path ) ;
} final double[] portfolioValue = new double[numberOfPath]; final RandomVariable underlyingAtEvaluationTime = model.getAssetValue(evaluationTime,0); final RandomVariable numeraireAtEvaluationTime = model.getNumeraire(evaluationTime); for(int path=0; path<underlyingAtEvaluationTime.size(); path++) { <extra_id_0> portfolioValue[path] = amountOfNumeraireAsset[path] * numeraireAtEvaluationTime.get(path) + amountOfUderlyingAsset[path] * underlyingValue; } return new RandomVariableFromDoubleArray(evaluationTime, portfolioValue); }