Class TransposedDistanceMatrixWrapper<A extends Order,​B extends Order>

  • All Implemented Interfaces:
    java.lang.Cloneable, DistanceMatrix<A,​B>

    public class TransposedDistanceMatrixWrapper<A extends Order,​B extends Order>
    extends java.lang.Object
    implements DistanceMatrix<A,​B>
    • Constructor Detail

      • TransposedDistanceMatrixWrapper

        public TransposedDistanceMatrixWrapper​(DistanceMatrix<B,​A> distMatrix)
    • Method Detail

      • getDistances

        public double[] getDistances()
        Description copied from interface: DistanceMatrix
        Gives an array with distances, for use in lpsolve. Notice: there are "empty" values in this array to make it directly suitable for lpsolve. Should be a fast method (all computations must have been done in the init function)
        Specified by:
        getDistances in interface DistanceMatrix<A extends Order,​B extends Order>
        Returns:
      • getDistance

        public double getDistance​(int l,
                                  int m)
        Description copied from interface: DistanceMatrix
        Get one particular distance. Should be a fast method (all computations must have been done in the init function)
        Specified by:
        getDistance in interface DistanceMatrix<A extends Order,​B extends Order>
        Returns: