Package elki.data.model
Class MeanModel
- java.lang.Object
-
- elki.data.model.SimplePrototypeModel<double[]>
-
- elki.data.model.MeanModel
-
- All Implemented Interfaces:
Model,PrototypeModel<double[]>,elki.result.textwriter.TextWriteable
- Direct Known Subclasses:
EMModel,KMeansModel,SubspaceModel
public class MeanModel extends SimplePrototypeModel<double[]> implements elki.result.textwriter.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.StringgetPrototypeType()Type of prototype (Median, Mean, ...) for printing.-
Methods inherited from class elki.data.model.SimplePrototypeModel
getPrototype, prototypeToString, toString, 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:PrototypeModelType of prototype (Median, Mean, ...) for printing.- Specified by:
getPrototypeTypein interfacePrototypeModel<double[]>- Overrides:
getPrototypeTypein classSimplePrototypeModel<double[]>- Returns:
- String name
-
-