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

    • Constructor Detail

      • DistanceMatrixAbstract

        public DistanceMatrixAbstract()
    • Method Detail

      • getDistance

        protected abstract double getDistance​(int[] traceA,
                                              int[] traceB,
                                              org.processmining.framework.plugin.ProMCanceller canceller)
        A method that computes the actual distance. Should be thread-safe.
        Parameters:
        traceA -
        traceB -
        Returns:
      • 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: