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