de.aitools.dm.clustering.dendrogram
Class DoubleMergeBase

java.lang.Object
  extended by de.aitools.dm.clustering.dendrogram.DoubleMergeBase
All Implemented Interfaces:
ClusterStep, DoubleMerge, Merge

public class DoubleMergeBase
extends java.lang.Object
implements DoubleMerge

A very basic implementation of a DoubleMerge. Only the constructor can be used to specify the values.

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

Constructor Summary
DoubleMergeBase(int clusterA, int clusterB, double mergedAt)
          Create a new DoubleMergeBase.
 
Method Summary
 int getClusterA()
          The ID of one of the both clusters that are merged in this step.
 int getClusterB()
          The ID of one of the both clusters that are merged in this step.
 double getMergedAt()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleMergeBase

public DoubleMergeBase(int clusterA,
                       int clusterB,
                       double mergedAt)
Create a new DoubleMergeBase.

Parameters:
clusterA - One cluster that was merged...
clusterB - ... with this other cluster...
mergedAt - ... at this value.
Method Detail

getMergedAt

public double getMergedAt()
Specified by:
getMergedAt in interface DoubleMerge
Returns:
The value associated with the merging process.

getClusterA

public int getClusterA()
Description copied from interface: Merge
The ID of one of the both clusters that are merged in this step.

Specified by:
getClusterA in interface Merge
Returns:
The ID of the cluster with the smaller ID of the both clusters that are merged.

getClusterB

public int getClusterB()
Description copied from interface: Merge
The ID of one of the both clusters that are merged in this step.

Specified by:
getClusterB in interface Merge
Returns:
The ID of the cluster with the higher ID of the both clusters that are merged.