O
- Input Object restriction typeD
- Distance restriction typepublic interface KMeansQualityMeasure<O extends NumberVector<?>,D extends Distance<?>>
Modifier and Type | Method and Description |
---|---|
<V extends O> |
calculateCost(Clustering<? extends MeanModel<V>> clustering,
PrimitiveDistanceFunction<? super V,? extends D> distanceFunction,
Relation<V> relation)
Calculates and returns the quality measure.
|
<V extends O> double calculateCost(Clustering<? extends MeanModel<V>> clustering, PrimitiveDistanceFunction<? super V,? extends D> distanceFunction, Relation<V> relation)
V
- Actual vector type (could be a subtype of O!)clustering
- Clustering to analyzedistanceFunction
- Distance function to use (usually Euclidean or
squared Euclidean!)relation
- Relation for accessing objects