public class NearestNeighborConsistency
extends java.lang.Object
Constructor and Description |
---|
NearestNeighborConsistency() |
Modifier and Type | Method and Description |
---|---|
static float |
consistencyNN(AbstractObjectList<LocalAbstractObject> database,
short[] clusterIds)
Consistency of nearest neighbors in the original space (database) and the resulting clustering (clusterIds).
|
public static float consistencyNN(AbstractObjectList<LocalAbstractObject> database, short[] clusterIds)
database
- list of all objectsclusterIds
- membership of an object to a cluster (ordering must be the same as in database); clusters are identfied by their IDs