edu.ucla.stat.SOCR.analyses.util.methods
Class Method

java.lang.Object
  extended by edu.ucla.stat.SOCR.analyses.util.methods.Method
Direct Known Subclasses:
CompleteLinkage, JointBetweenWithin, SingleLinkage, UnweightedAverage, UnweightedCentroid, WeightedAverage, WeightedCentroid

public abstract class Method
extends java.lang.Object

MultiDendrograms

Abstract class for the different clustering methods available

Since:
JDK 6.0
Author:
Justo Montiel, David Torres, Sergio Gómez, Alberto Fernández

Constructor Summary
Method(Cluster ci, Cluster cj, MatriuDistancies md)
           
 
Method Summary
protected abstract  double CalculLinkage()
           
 double Distancia()
           
protected abstract  double getAlfa_ij(Cluster i, Cluster j)
           
protected abstract  double getBeta_ii(Cluster i, Cluster ii)
           
protected abstract  double getBeta_jj(Cluster j, Cluster jj)
           
 Cluster getcI()
           
 Cluster getcJ()
           
protected  double getDistanciaMax(Cluster ci, Cluster cj)
           
protected  double getDistanciaMin(Cluster ci, Cluster cj)
           
protected abstract  double getGamma_ij(Cluster i, Cluster j)
           
 void setcI(Cluster i)
           
 void setcJ(Cluster j)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Method

public Method(Cluster ci,
              Cluster cj,
              MatriuDistancies md)
Method Detail

Distancia

public double Distancia()
                 throws java.lang.Exception
Throws:
java.lang.Exception

CalculLinkage

protected abstract double CalculLinkage()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getAlfa_ij

protected abstract double getAlfa_ij(Cluster i,
                                     Cluster j)

getBeta_ii

protected abstract double getBeta_ii(Cluster i,
                                     Cluster ii)

getBeta_jj

protected abstract double getBeta_jj(Cluster j,
                                     Cluster jj)

getGamma_ij

protected abstract double getGamma_ij(Cluster i,
                                      Cluster j)

getcI

public Cluster getcI()

setcI

public void setcI(Cluster i)

getcJ

public Cluster getcJ()

setcJ

public void setcJ(Cluster j)

getDistanciaMax

protected double getDistanciaMax(Cluster ci,
                                 Cluster cj)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getDistanciaMin

protected double getDistanciaMin(Cluster ci,
                                 Cluster cj)
                          throws java.lang.Exception
Throws:
java.lang.Exception