T
- the type of the distance function argumentspublic interface DistanceFunctionMultiObject<T>
Note that the actual distance function used to compute the distance is given by the implementation.
Modifier and Type | Method and Description |
---|---|
float |
getDistanceMultiObject(java.util.Collection<? extends T> objects,
T object,
float[] individualDistances)
Measures the distance between all the objects in set (the first argument) and
the specified object (the second argument).
|
java.lang.Class<? extends T> |
getDistanceObjectClass()
Returns the type of objects that this distance function accepts as arguments.
|
float getDistanceMultiObject(java.util.Collection<? extends T> objects, T object, float[] individualDistances) throws java.lang.IndexOutOfBoundsException
individualDistances
will be filled with the
distances to the individual objects in the set.objects
- the set of objects for which to measure the distance to the second parameterobject
- the object for which to measure the distanceindividualDistances
- the array to fill with the distances to the respective objects from the set;
if not null, it must have the same number of allocated elements as the number of the set of objectsobjects
and the object
java.lang.IndexOutOfBoundsException
- if the passed individualDistances
array is not big enoughjava.lang.Class<? extends T> getDistanceObjectClass()