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