/src/main/java/net/finmath/singleswaprate/data/ErrorEstimation.java
double sum = 0;double c = 0;
double c = 0;
max = Math.max(max, Math.abs(marketCash[i] - modelCash[i])); } return max; } public double getCashAverageErrorPercent() { double sum = 0; <extra_id_0> for(int i = 0; i < marketCash.length; i++) { final double y = Math.abs(modelCash[i] / marketCash[i] - 1) - c; final double t = sum + y; c = (t - sum) - y; sum = t; }