de.lmu.ifi.dbs.elki.data.model
Class CorrelationModel<V extends FeatureVector<V,?>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.data.model.BaseModel
      extended by de.lmu.ifi.dbs.elki.data.model.CorrelationModel<V>
Type Parameters:
V - Vector type
All Implemented Interfaces:
Model, TextWriteable

public class CorrelationModel<V extends FeatureVector<V,?>>
extends BaseModel
implements TextWriteable

Cluster model using a filtered PCA result and an centroid.


Field Summary
private  V centroid
          The centroid of this cluster.
private  PCAFilteredResult pcaresult
          The computed PCA result of this cluster.
 
Constructor Summary
CorrelationModel(PCAFilteredResult pcaresult, V centroid)
          Constructor
 
Method Summary
 V getCentroid()
          Get assigned for Centroid
 PCAFilteredResult getPCAResult()
          Get assigned PCA result
 void setCentroid(V centroid)
          Assign new Centroid
 void setPCAResult(PCAFilteredResult pcaresult)
          Assign new PCA result
 void writeToText(TextWriterStream out, String label)
          Implementation of TextWriteable interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pcaresult

private PCAFilteredResult pcaresult
The computed PCA result of this cluster.


centroid

private V extends FeatureVector<V,?> centroid
The centroid of this cluster.

Constructor Detail

CorrelationModel

public CorrelationModel(PCAFilteredResult pcaresult,
                        V centroid)
Constructor

Parameters:
pcaresult - PCA result
centroid - 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

getCentroid

public V getCentroid()
Get assigned for Centroid

Returns:
centroid

setCentroid

public void setCentroid(V centroid)
Assign new Centroid

Parameters:
centroid - Centroid

writeToText

public void writeToText(TextWriterStream out,
                        String label)
Implementation of TextWriteable interface

Specified by:
writeToText in interface TextWriteable
Overrides:
writeToText in class BaseModel
Parameters:
label - unused parameter
out - Output steam

Release 0.4.0 (2011-09-20_1324)