Package pal.distance

Class DistanceMatrixUtils

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

public class DistanceMatrixUtils extends Object implements 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:
  • Constructor Details

    • DistanceMatrixUtils

      public DistanceMatrixUtils()
  • Method Details

    • 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.