edu.ucla.stat.SOCR.analyses.util.definicions
Class MatriuDistancies
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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()