(double a, double b)
| 68 | } |
| 69 | |
| 70 | private double relDiff(double a, double b) { |
| 71 | final double diff = Math.abs(a-b); |
| 72 | if(diff<=0.0) { |
| 73 | return 0.0; |
| 74 | } else { |
| 75 | return 2.0*diff/(Math.abs(a)+Math.abs(b)); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * essentially the same loop structure as VariableEncodings.formatSoln. So double calculating here confirms |