Package elki.data.model
Class CorrelationModel
- java.lang.Object
-
- elki.data.model.SimplePrototypeModel<double[]>
-
- elki.data.model.CorrelationModel
-
- All Implemented Interfaces:
Model
,PrototypeModel<double[]>
,TextWriteable
public class CorrelationModel extends SimplePrototypeModel<double[]>
Cluster model using a filtered PCA result and an centroid.- Since:
- 0.2
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private PCAFilteredResult
pcaresult
The computed PCA result of this cluster.-
Fields inherited from class elki.data.model.SimplePrototypeModel
prototype
-
-
Constructor Summary
Constructors Constructor Description CorrelationModel(PCAFilteredResult pcaresult, double[] centroid)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PCAFilteredResult
getPCAResult()
Get assigned PCA resultvoid
setPCAResult(PCAFilteredResult pcaresult)
Assign new PCA resultvoid
writeToText(TextWriterStream out, java.lang.String label)
Implementation ofTextWriteable
interface-
Methods inherited from class elki.data.model.SimplePrototypeModel
getPrototype, getPrototypeType, prototypeToString, toString
-
-
-
-
Field Detail
-
pcaresult
private PCAFilteredResult pcaresult
The computed PCA result of this cluster.
-
-
Constructor Detail
-
CorrelationModel
public CorrelationModel(PCAFilteredResult pcaresult, double[] centroid)
Constructor- Parameters:
pcaresult
- PCA resultcentroid
- Centroid
-
-
Method Detail
-
getPCAResult
public PCAFilteredResult getPCAResult()
Get assigned PCA result- Returns:
- PCA result
-
setPCAResult
public void setPCAResult(PCAFilteredResult pcaresult)
Assign new PCA result- Parameters:
pcaresult
- PCA result
-
writeToText
public void writeToText(TextWriterStream out, java.lang.String label)
Implementation ofTextWriteable
interface- Specified by:
writeToText
in interfaceModel
- Specified by:
writeToText
in interfacePrototypeModel<double[]>
- Specified by:
writeToText
in interfaceTextWriteable
- Overrides:
writeToText
in classSimplePrototypeModel<double[]>
- Parameters:
label
- unused parameterout
- Output steam
-
-