| 132 | } |
| 133 | |
| 134 | double getPrecision(int label) |
| 135 | { |
| 136 | if ((getTruePositives(label) + getFalsePositives(label)) == 0) |
| 137 | return 0.0; |
| 138 | else |
| 139 | return (double)getTruePositives(label) / |
| 140 | ((double)getTruePositives(label) + |
| 141 | (double)getFalsePositives(label)); |
| 142 | } |
| 143 | |
| 144 | double getAccuracy(int label) |
| 145 | { |
nothing calls this directly
no test coverage detected