@Deprecated public class HammingDistance extends Object implements DistanceMeasure
| Constructor and Description |
|---|
HammingDistance()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
double |
compute(Vector a,
double[] b)
Deprecated.
Compute the distance between n-dimensional vector and n-dimensional array.
|
double |
compute(Vector a,
Vector b)
Deprecated.
Compute the distance between two n-dimensional vectors.
|
boolean |
equals(Object obj)
Deprecated.
|
int |
hashCode()
Deprecated.
|
void |
readExternal(ObjectInput in)
Deprecated.
|
void |
writeExternal(ObjectOutput out)
Deprecated.
|
public double compute(Vector a, Vector b) throws CardinalityException
The two vectors are required to have the same dimension.
compute in interface DistanceMeasurea - The first vector.b - The second vector.CardinalityException - if the array lengths differ.public double compute(Vector a, double[] b) throws CardinalityException
The two data structures are required to have the same dimension.
compute in interface DistanceMeasurea - The vector.b - The array.CardinalityException - if the data structures lengths differ.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
GridGain In-Memory Computing Platform : ver. 8.9.38 Release Date : September 22 2026