Package pal.distance
Class DistanceMatrixUtils
- java.lang.Object
-
- 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
Constructors Constructor Description DistanceMatrixUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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.
-
-