Package elki.data.model
Class KMeansModel
- java.lang.Object
-
- elki.data.model.SimplePrototypeModel<double[]>
-
- elki.data.model.MeanModel
-
- elki.data.model.KMeansModel
-
- All Implemented Interfaces:
Model
,PrototypeModel<double[]>
,TextWriteable
public class KMeansModel extends MeanModel
Trivial subclass of theMeanModel
that indicates the clustering to be produced by k-means (so the Voronoi cell visualization is sensible).- Since:
- 0.5.5
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) double
varsum
Variance sum.-
Fields inherited from class elki.data.model.SimplePrototypeModel
prototype
-
-
Constructor Summary
Constructors Constructor Description KMeansModel(double[] mean, double varsum)
Constructor with mean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getVarianceContribution()
Get the variance contribution of the cluster (sum of variances)-
Methods inherited from class elki.data.model.MeanModel
getMean, getPrototypeType
-
Methods inherited from class elki.data.model.SimplePrototypeModel
getPrototype, prototypeToString, toString, writeToText
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface elki.result.textwriter.TextWriteable
writeToText
-
-