(double a, double b)
| 73 | } |
| 74 | |
| 75 | private double relDiff(double a, double b) { |
| 76 | final double diff = Math.abs(a-b); |
| 77 | if(diff<=0.0) { |
| 78 | return 0.0; |
| 79 | } else { |
| 80 | return 2.0*diff/(Math.abs(a)+Math.abs(b)); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * essentially the same loop structure as VariableEncodings.formatSoln. So double calculating here confirms |
no outgoing calls
no test coverage detected