public class HammingDistance extends java.lang.Object implements Distance<java.util.BitSet>
| Constructor and Description |
|---|
HammingDistance()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
d(java.util.BitSet x,
java.util.BitSet y)
Returns the distance measure between two objects.
|
static int |
d(byte[] x,
byte[] y)
Returns Hamming distance between the two byte arrays.
|
static int |
d(byte x,
byte y)
Returns Hamming distance between the two bytes.
|
static int |
d(int[] x,
int[] y)
Returns Hamming distance between the two integer arrays.
|
static int |
d(int x,
int y)
Returns Hamming distance between the two integers.
|
static int |
d(long x,
long y)
Returns Hamming distance between the two long integers.
|
static int |
d(short[] x,
short[] y)
Returns Hamming distance between the two short arrays.
|
static int |
d(short x,
short y)
Returns Hamming distance between the two shorts.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapply, applyAsDouble, D, Dpublic java.lang.String toString()
toString in class java.lang.Objectpublic double d(java.util.BitSet x,
java.util.BitSet y)
Distancepublic static int d(byte x,
byte y)
public static int d(short x,
short y)
public static int d(int x,
int y)
public static int d(long x,
long y)
public static int d(byte[] x,
byte[] y)
public static int d(short[] x,
short[] y)
public static int d(int[] x,
int[] y)