O- Input Object restriction type
public interface KMeansQualityMeasure<O extends NumberVector>
Important note: some measures are ascending, others are descending,
so use the method
isBetter(double, double) for ordering.
|Modifier and Type||Method and Description|
Compare two scores.
Calculates and returns the quality measure.
<V extends O> double quality(Clustering<? extends MeanModel> clustering, NumberVectorDistanceFunction<? super V> distanceFunction, Relation<V> relation)
V- Actual vector type (could be a subtype of O!)
clustering- Clustering to analyze
distanceFunction- Distance function to use (usually Euclidean or squared Euclidean!)
relation- Relation for accessing objects
boolean isBetter(double currentCost, double bestCost)
currentCost- New (candiate) cost/score
bestCost- Existing best cost/score (may be
truewhen the new score is better, or the old score is
Copyright © 2019 ELKI Development Team. License information.