Compute distance as a probability of match, based solely on context information. Ratio of num differences / num total context positions.
(int[] A, int[] B)
| 308 | * Ratio of num differences / num total context positions. |
| 309 | */ |
| 310 | public double distance(int[] A, int[] B) { |
| 311 | // return ((float)Tool.L0_Distance(categorical, A, B))/num_categorical; |
| 312 | double d = Tool.weightedL0_Distance(FEATURES, A, B); |
| 313 | return d/maxDistanceCount; |
| 314 | } |
| 315 | } |
no test coverage detected