public interface DistanceMeasure extends Externalizable
| Modifier and Type | Method and Description |
|---|---|
default 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.
|
default void |
readExternal(ObjectInput in) |
default void |
writeExternal(ObjectOutput out) |
double 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.default 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.default void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptiondefault void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.14.0 Release Date : September 29 2022