edu.ucla.stat.SOCR.analyses.util.definicions
Class MatriuDistancies

java.lang.Object
  extended by edu.ucla.stat.SOCR.analyses.util.definicions.MatriuDistancies

public class MatriuDistancies
extends java.lang.Object

MultiDendrograms

Stores the distances matrix and implements methods for its management

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

Constructor Summary
MatriuDistancies(int size)
           
MatriuDistancies(int size, tipusDades tip)
           
 
Method Summary
 boolean existDistance(Cluster ci, Cluster cii)
           
 Cluster getArrel()
           
 int getCardinalitat()
           
 Cluster getCluster(int pos)
           
 java.util.Vector<Cluster> getClusters()
           
 java.lang.Double getDistancia(Cluster i, Cluster ii)
           
 double[][] getMatriu()
           
 tipusDades getTipDades()
           
 boolean isTipusDistancies()
           
 boolean isUnari()
           
 java.lang.Double maxValue()
           
 java.lang.Double minValue()
           
 void setDistancia(Cluster ci)
           
 void setDistancia(Cluster ci, Cluster cii, double dis)
           
 void setTipDades(tipusDades tipDades)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatriuDistancies

public MatriuDistancies(int size,
                        tipusDades tip)
                 throws java.lang.Exception
Throws:
java.lang.Exception

MatriuDistancies

public MatriuDistancies(int size)
                 throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

isUnari

public boolean isUnari()

existDistance

public boolean existDistance(Cluster ci,
                             Cluster cii)

setDistancia

public void setDistancia(Cluster ci,
                         Cluster cii,
                         double dis)
                  throws java.lang.Exception
Throws:
java.lang.Exception

setDistancia

public void setDistancia(Cluster ci)
                  throws java.lang.Exception
Throws:
java.lang.Exception

getDistancia

public java.lang.Double getDistancia(Cluster i,
                                     Cluster ii)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getCardinalitat

public int getCardinalitat()

minValue

public java.lang.Double minValue()

maxValue

public java.lang.Double maxValue()

getClusters

public java.util.Vector<Cluster> getClusters()

getCluster

public Cluster getCluster(int pos)

getMatriu

public double[][] getMatriu()
                     throws java.lang.Exception
Throws:
java.lang.Exception

getArrel

public Cluster getArrel()

getTipDades

public tipusDades getTipDades()

setTipDades

public void setTipDades(tipusDades tipDades)

isTipusDistancies

public boolean isTipusDistancies()