Class StatisticalTestUtils


  • public class StatisticalTestUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.StochasticLanguage<org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.TotalOrder> applySample​(org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.StochasticLanguage<org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.TotalOrder> language, double[] sample)  
      static java.util.List<org.processmining.plugins.InductiveMiner.Quadruple<java.lang.Double,​java.lang.Boolean,​java.lang.String,​java.lang.String>> benjaminiHochberg​(java.util.List<org.processmining.plugins.InductiveMiner.Triple<java.lang.Double,​java.lang.String,​java.lang.String>> values, double alpha)  
      static java.util.List<org.deckfour.xes.model.XTrace> filterTracesCategorical​(org.processmining.plugins.inductiveminer2.attributes.Attribute attribute, org.deckfour.xes.model.XLog log, boolean debug)  
      static java.util.List<org.deckfour.xes.model.XTrace> filterTracesNumerical​(org.processmining.plugins.inductiveminer2.attributes.Attribute attribute, org.deckfour.xes.model.XLog log, boolean debug)  
      static double[] getMassKeyNormal​(org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.StochasticLanguage<org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.TotalOrder> language)  
      static int[] getSample​(java.util.List<org.deckfour.xes.model.XTrace> traces, int sampleSize, java.util.Random random)  
      static double getSimilarity​(org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.StochasticLanguage<org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.TotalOrder> languageA, org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.StochasticLanguage<org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.TotalOrder> languageB, org.processmining.earthmoversstochasticconformancechecking.distancematrix.DistanceMatrix<org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.TotalOrder,​org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.TotalOrder> distanceMatrix, org.processmining.earthmoversstochasticconformancechecking.parameters.EMSCParameters<org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.TotalOrder,​org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.TotalOrder> parameters, org.processmining.framework.plugin.ProMCanceller canceller)  
      static java.lang.String[] getTraceString​(org.deckfour.xes.model.XTrace xTrace, org.deckfour.xes.classification.XEventClassifier classifier)  
      static double[] sample​(AliasMethod aliasMethod, int sampleSize)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StatisticalTestUtils

        public StatisticalTestUtils()
    • Method Detail

      • filterTracesCategorical

        public static java.util.List<org.deckfour.xes.model.XTrace> filterTracesCategorical​(org.processmining.plugins.inductiveminer2.attributes.Attribute attribute,
                                                                                            org.deckfour.xes.model.XLog log,
                                                                                            boolean debug)
        Parameters:
        attribute -
        log -
        debug -
        Returns:
        a list of traces that have the attribute, or null if (1) all values are the same, or (2) all values are unique
      • filterTracesNumerical

        public static java.util.List<org.deckfour.xes.model.XTrace> filterTracesNumerical​(org.processmining.plugins.inductiveminer2.attributes.Attribute attribute,
                                                                                          org.deckfour.xes.model.XLog log,
                                                                                          boolean debug)
        Parameters:
        attribute -
        log -
        debug -
        Returns:
        a list of traces that have the attribute, or null if (1) all values are the same, or (2) all values are unique
      • getSample

        public static int[] getSample​(java.util.List<org.deckfour.xes.model.XTrace> traces,
                                      int sampleSize,
                                      java.util.Random random)
        Parameters:
        traces -
        sampleSize -
        random -
        Returns:
        an array of trace indices in the list
      • getTraceString

        public static java.lang.String[] getTraceString​(org.deckfour.xes.model.XTrace xTrace,
                                                        org.deckfour.xes.classification.XEventClassifier classifier)
      • getMassKeyNormal

        public static double[] getMassKeyNormal​(org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.StochasticLanguage<org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.TotalOrder> language)
      • getSimilarity

        public static double getSimilarity​(org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.StochasticLanguage<org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.TotalOrder> languageA,
                                           org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.StochasticLanguage<org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.TotalOrder> languageB,
                                           org.processmining.earthmoversstochasticconformancechecking.distancematrix.DistanceMatrix<org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.TotalOrder,​org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.TotalOrder> distanceMatrix,
                                           org.processmining.earthmoversstochasticconformancechecking.parameters.EMSCParameters<org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.TotalOrder,​org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.TotalOrder> parameters,
                                           org.processmining.framework.plugin.ProMCanceller canceller)
        Parameters:
        languageA -
        languageB -
        distanceMatrix -
        parameters -
        canceller -
        Returns:
        EMSC distance, or Double.NaN if something went wrong
      • applySample

        public static org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.StochasticLanguage<org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.TotalOrder> applySample​(org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.StochasticLanguage<org.processmining.earthmoversstochasticconformancechecking.stochasticlanguage.TotalOrder> language,
                                                                                                                                                                                                                             double[] sample)
      • sample

        public static double[] sample​(AliasMethod aliasMethod,
                                      int sampleSize)
      • benjaminiHochberg

        public static java.util.List<org.processmining.plugins.InductiveMiner.Quadruple<java.lang.Double,​java.lang.Boolean,​java.lang.String,​java.lang.String>> benjaminiHochberg​(java.util.List<org.processmining.plugins.InductiveMiner.Triple<java.lang.Double,​java.lang.String,​java.lang.String>> values,
                                                                                                                                                                                                   double alpha)
        Type Parameters:
        X -
        X -
        Parameters:
        values -
        Returns:
        which hypotheses are rejected