pal.distance
Class DistanceMatrixUtils

java.lang.Object
  extended by pal.distance.DistanceMatrixUtils
All Implemented Interfaces:
java.io.Serializable

public class DistanceMatrixUtils
extends java.lang.Object
implements java.io.Serializable

Auxillary functions for distance matrices

Version:
$Id: DistanceMatrixUtils.java,v 1.6 2002/12/05 04:27:28 matt Exp $
Author:
Alexei Drummond
See Also:
Serialized Form

Constructor Summary
DistanceMatrixUtils()
           
 
Method Summary
static DistanceMatrix minus(DistanceMatrix parent, int taxaToRemove)
          Returns a distance matrix with the specified taxa removed.
static double squaredDistance(DistanceMatrix mat1, DistanceMatrix mat2, boolean weighted)
          compute squared distance to second distance matrix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistanceMatrixUtils

public DistanceMatrixUtils()
Method Detail

squaredDistance

public static double squaredDistance(DistanceMatrix mat1,
                                     DistanceMatrix mat2,
                                     boolean weighted)
compute squared distance to second distance matrix. If both matrices have the same size it is assumed that the order of the taxa is identical.


minus

public static DistanceMatrix minus(DistanceMatrix parent,
                                   int taxaToRemove)
Returns a distance matrix with the specified taxa removed.