/src/main/java/net/finmath/singleswaprate/data/ErrorEstimation.java
if( ( maturity != evaluatedMaturity) && ( termination != evaluatedTermination) ) {
if ( ( maturity != evaluatedMaturity ) || ( termination != evaluatedTermination ) ) {
for(int i = 0; i < marketCashTenor.length; i++) { max = Math.max(max, Math.abs(marketCashTenor[i] - modelCashTenor[i])); } return max; } public double getCashAverageErrorPercent(final int maturity, final int termination, final VolatilityCubeModel model) { <extra_id_0> evaluateTenor(maturity, termination, model); } double sum = 0; double c = 0; for(int i = 0; i < marketCashTenor.length; i++) { final double y = Math.abs(modelCashTenor[i] / marketCashTenor[i] - 1) - c;