Package pal.distance
Class DistanceMatrixUtils
java.lang.Object
pal.distance.DistanceMatrixUtils
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
DistanceMatrixUtils
public DistanceMatrixUtils()
-
-
Method Details
-
squaredDistance
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
Returns a distance matrix with the specified taxa removed.
-