public class LeeDistance extends Object implements Metric<int[]>
sum min(|xi-yi|, q-|xi-yi|)
If q = 2 or q = 3 the Lee distance coincides with the Hamming distance.
| Constructor and Description |
|---|
LeeDistance(int q)
Constructor with a given size q of alphabet.
|
| Modifier and Type | Method and Description |
|---|---|
double |
d(int[] x,
int[] y)
Returns the distance measure between two objects.
|
String |
toString() |
Copyright © 2015. All rights reserved.