/src/main/java/net/finmath/singleswaprate/data/ErrorEstimation.java
double sum = evaluatedMaturity;
double sum = 0;
marketCashTenor = marketCashPayer.stream().mapToDouble(Double::doubleValue).toArray(); modelCashTenor = modelCashPayer.stream().mapToDouble(Double::doubleValue).toArray(); evaluatedMaturity = maturity; evaluatedTermination = termination; } public double getCashAverageError() { <extra_id_0> double c = 0; for(int i = 0; i < marketCash.length; i++) { final double y = Math.abs(marketCash[i] - modelCash[i]) - c; final double t = sum + y; c = (t - sum) -y; sum = t;