Package elki.data.model
Class MeanModel
- java.lang.Object
-
- elki.data.model.SimplePrototypeModel<double[]>
-
- elki.data.model.MeanModel
-
- All Implemented Interfaces:
Model
,PrototypeModel<double[]>
,TextWriteable
- Direct Known Subclasses:
EMModel
,GeneratorModel
,KMeansModel
,SubspaceModel
public class MeanModel extends SimplePrototypeModel<double[]> implements TextWriteable
Cluster model that stores a mean for the cluster.- Since:
- 0.3
- Author:
- Erich Schubert
-
-
Field Summary
-
Fields inherited from class elki.data.model.SimplePrototypeModel
prototype
-
-
Constructor Summary
Constructors Constructor Description MeanModel(double[] mean)
Constructor with mean
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
getMean()
Get the mean.java.lang.String
getPrototypeType()
Type of prototype (Median, Mean, ...) for printing.-
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
-
-
-
-
Method Detail
-
getMean
public double[] getMean()
Get the mean.- Returns:
- mean (do not modify!)
-
getPrototypeType
public java.lang.String getPrototypeType()
Description copied from interface:PrototypeModel
Type of prototype (Median, Mean, ...) for printing.- Specified by:
getPrototypeType
in interfacePrototypeModel<double[]>
- Overrides:
getPrototypeType
in classSimplePrototypeModel<double[]>
- Returns:
- String name
-
-