Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.algorithm.result.clustering
Class HierarchicalCorrelationCluster<V extends RealVector<V,?>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.logging.AbstractLoggable
      extended by de.lmu.ifi.dbs.elki.algorithm.result.clustering.HierarchicalCluster<HierarchicalCorrelationCluster<V>>
          extended by de.lmu.ifi.dbs.elki.algorithm.result.clustering.HierarchicalCorrelationCluster<V>
Type Parameters:
V - the type of RealVector handled by this Result
All Implemented Interfaces:
Loggable, Enumeratable<HierarchicalCorrelationCluster<V>>, Comparable<HierarchicalCorrelationCluster<V>>

public class HierarchicalCorrelationCluster<V extends RealVector<V,?>>
extends HierarchicalCluster<HierarchicalCorrelationCluster<V>>

Provides a hierarchical correlation cluster in an arbitrary subspace that holds the PCA, the ids of the objects belonging to this cluster and the children and parents of this cluster.

Author:
Elke Achtert

Field Summary
private  V centroid
          The centroid of this cluster.
private  LocalPCA<V> pca
          The PCA of this cluster.
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug
 
Constructor Summary
HierarchicalCorrelationCluster(LocalPCA<V> pca, Set<Integer> ids, List<HierarchicalCorrelationCluster<V>> children, List<HierarchicalCorrelationCluster<V>> parents, String label, int level, int levelIndex)
          Provides a hierarchical correlation cluster in an arbitrary subspace that holds the basis vectors of this cluster, the similarity matrix for distance computations, the ids of the objects belonging to this cluster and the children and parents of this cluster.
HierarchicalCorrelationCluster(LocalPCA<V> pca, Set<Integer> ids, String label, int level, int levelIndex)
          Provides a new hierarchical correlation cluster with the specified parameters.
 
Method Summary
 V getCentroid()
          Returns the centroid of this cluster.
 LocalPCA<V> getPCA()
          Returns the PCA of this cluster.
 int hashCode()
          Returns a hash code value for this cluster.
 void setCentroid(V centroid)
          Sets the centroid of this cluster.
 
Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.result.clustering.HierarchicalCluster
addChild, addID, addIDs, addParent, compareTo, equals, getChild, getChildren, getIDs, getLabel, getLevel, getLevelIndex, getParent, getParents, numChildren, numParents, removeID, setLabel, setLevel, setLevelIndex, toString
 
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

pca

private final LocalPCA<V extends RealVector<V,?>> pca
The PCA of this cluster.


centroid

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

Constructor Detail

HierarchicalCorrelationCluster

public HierarchicalCorrelationCluster(LocalPCA<V> pca,
                                      Set<Integer> ids,
                                      String label,
                                      int level,
                                      int levelIndex)
Provides a new hierarchical correlation cluster with the specified parameters.

Parameters:
pca - the PCA of this cluster
ids - the ids of the objects belonging to this cluster
label - the label of this cluster
level - the level of this cluster in the graph
levelIndex - the index of this cluster within the level

HierarchicalCorrelationCluster

public HierarchicalCorrelationCluster(LocalPCA<V> pca,
                                      Set<Integer> ids,
                                      List<HierarchicalCorrelationCluster<V>> children,
                                      List<HierarchicalCorrelationCluster<V>> parents,
                                      String label,
                                      int level,
                                      int levelIndex)
Provides a hierarchical correlation cluster in an arbitrary subspace that holds the basis vectors of this cluster, the similarity matrix for distance computations, the ids of the objects belonging to this cluster and the children and parents of this cluster.

Parameters:
pca - the PCA of this cluster
ids - the ids of the objects belonging to this cluster
children - the list of children of this cluster
parents - the list of parents of this cluster
label - the label of this cluster
level - the level of this cluster in the graph
levelIndex - the index of this cluster within the level
Method Detail

getPCA

public LocalPCA<V> getPCA()
Returns the PCA of this cluster.

Returns:
the PCA of this cluster

hashCode

public int hashCode()
Returns a hash code value for this cluster.

Overrides:
hashCode in class Object
Returns:
a hash code value for this cluster

setCentroid

public void setCentroid(V centroid)
Sets the centroid of this cluster.

Parameters:
centroid - the centroid to be set

getCentroid

public V getCentroid()
Returns the centroid of this cluster.

Returns:
the centroid of this clusterx

Release 0.1 (2008-07-10_1838)