de.aitools.dm.clustering.dendrogram
Interface DendrogramIterator<S extends ClusterStep>

All Superinterfaces:
java.util.Iterator<DendrogramIterator<S>>
All Known Implementing Classes:
DendrogramMergeIterator

public interface DendrogramIterator<S extends ClusterStep>
extends java.util.Iterator<DendrogramIterator<S>>

An iterator over the different ClusterSteps of a Dendrogram.

Version:
$Id: DendrogramIterator.java,v 1.1 2011/06/22 14:22:51 dogu3912 Exp $
Author:
johannes.kiesel(/\t)uni-weimar.de

Method Summary
 int[] getCurrentAssignments()
          Get the cluster assignment of all points of the input data (data) at the current step
 S getLastChange()
           
 S getNextChange()
           
 int getNumClusters()
           
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

getCurrentAssignments

int[] getCurrentAssignments()
Get the cluster assignment of all points of the input data (data) at the current step

Returns:
Cluster assignment c such that
c[i] = cluster-id of the cluster to which data[i] was assigned.

getLastChange

S getLastChange()
Returns:
The last ClusterStep before the current state of cluster assignment.

getNextChange

S getNextChange()
Returns:
The ClusterStep that will lead to the next state of cluster assignment.

getNumClusters

int getNumClusters()
Returns:
Current number of clusters.