| 122 | } |
| 123 | |
| 124 | double getSpecificity(int label) |
| 125 | { |
| 126 | if ((getFalsePositives(label) + getTrueNegatives(label)) == 0) |
| 127 | return 0.0; |
| 128 | else |
| 129 | return (double)getTrueNegatives(label) / |
| 130 | ((double)getFalsePositives(label) + |
| 131 | (double)getTrueNegatives(label)); |
| 132 | } |
| 133 | |
| 134 | double getPrecision(int label) |
| 135 | { |
nothing calls this directly
no test coverage detected