tpp
Class HierarchicalCluster

java.lang.Object
  extended by tpp.HierarchicalCluster

public class HierarchicalCluster
extends java.lang.Object

A cluster of instances and or other clusters


Method Summary
 void add(java.lang.Object member)
          cluster can only contain Instances or other Clusters
 java.lang.Object get(int i)
           
 Matrix getCentroid()
           
 java.util.Vector<Instance> getInstances()
          All the instances in all the sub-clusters of this one
 java.util.Vector getMembers()
           
 boolean isLeaf()
          is this a leaf? ie does it contain just one instance and no sub-clusters
 void remove(java.lang.Object member)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

add

public void add(java.lang.Object member)
cluster can only contain Instances or other Clusters


remove

public void remove(java.lang.Object member)

getCentroid

public Matrix getCentroid()

size

public int size()

isLeaf

public boolean isLeaf()
is this a leaf? ie does it contain just one instance and no sub-clusters


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

get

public java.lang.Object get(int i)

getMembers

public java.util.Vector getMembers()

getInstances

public java.util.Vector<Instance> getInstances()
All the instances in all the sub-clusters of this one