public interface DistanceMeasure extends Externalizable
| Modifier and Type | Method and Description |
|---|---|
double |
compute(Vector a,
double[] b)
Compute the distance between n-dimensional vector and n-dimensional array.
|
double |
compute(Vector a,
Vector b)
Compute the distance between two n-dimensional vectors.
|
readExternal, writeExternaldouble compute(Vector a, Vector b) throws CardinalityException
The two vectors are required to have the same dimension.
a - The first vector.b - The second vector.CardinalityException - if the array lengths differ.double compute(Vector a, double[] b) throws CardinalityException
The two data structures are required to have the same dimension.
a - The vector.b - The array.CardinalityException - if the data structures lengths differ.
GridGain In-Memory Computing Platform : ver. 8.9.26 Release Date : October 16 2025