- java.lang.Object
-
- org.processmining.earthmoversstochasticconformancechecking.distancematrix.TransposedDistanceMatrixWrapper<A,B>
-
- 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 Summary
Constructors Constructor Description TransposedDistanceMatrixWrapper(DistanceMatrix<B,A> distMatrix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DistanceMatrix<A,B>clone()doublegetDistance(int l, int m)Get one particular distance.double[]getDistances()Gives an array with distances, for use in lpsolve.voidinit(StochasticLanguage<A> languageA, StochasticLanguage<B> languageB, org.processmining.framework.plugin.ProMCanceller canceller)
-
-
-
Constructor Detail
-
TransposedDistanceMatrixWrapper
public TransposedDistanceMatrixWrapper(DistanceMatrix<B,A> distMatrix)
-
-
Method Detail
-
clone
public DistanceMatrix<A,B> clone()
-
init
public void init(StochasticLanguage<A> languageA, StochasticLanguage<B> languageB, org.processmining.framework.plugin.ProMCanceller canceller) throws java.lang.InterruptedException
-
getDistances
public double[] getDistances()
Description copied from interface:DistanceMatrixGives 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:
getDistancesin interfaceDistanceMatrix<A extends Order,B extends Order>- Returns:
-
getDistance
public double getDistance(int l, int m)Description copied from interface:DistanceMatrixGet one particular distance. Should be a fast method (all computations must have been done in the init function)- Specified by:
getDistancein interfaceDistanceMatrix<A extends Order,B extends Order>- Returns:
-
-