Class MineSupportedWordsAlgorithm


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int countPositiveWitnesses​(short[] word, short[][] log)
      Counts how often the given word occurs in the given log.
      static org.deckfour.xes.model.XLog mineSupportedWords​(org.processmining.framework.plugin.PluginContext context, org.deckfour.xes.model.XLog log, DiscoverContextRichLPMsParameters parameters)
      Creates a log with traces that correspond to supported words in the input log.
      static org.deckfour.xes.model.XLog wordsToLog​(java.util.List<Word> words, ShortLog shortLog, org.deckfour.xes.factory.XFactory factory)
      Transforms a list of Words into an XLog with support attributes.
      • Methods inherited from class java.lang.Object

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

      • MineSupportedWordsAlgorithm

        public MineSupportedWordsAlgorithm()
    • Method Detail

      • mineSupportedWords

        public static org.deckfour.xes.model.XLog mineSupportedWords​(org.processmining.framework.plugin.PluginContext context,
                                                                     org.deckfour.xes.model.XLog log,
                                                                     DiscoverContextRichLPMsParameters parameters)
        Creates a log with traces that correspond to supported words in the input log. Also adds a "support" attribute to each trace.
        Parameters:
        context -
        log -
        parameters -
        Returns:
      • wordsToLog

        public static org.deckfour.xes.model.XLog wordsToLog​(java.util.List<Word> words,
                                                             ShortLog shortLog,
                                                             org.deckfour.xes.factory.XFactory factory)
        Transforms a list of Words into an XLog with support attributes.
        Parameters:
        words -
        shortLog -
        factory -
        Returns:
      • countPositiveWitnesses

        public static int countPositiveWitnesses​(short[] word,
                                                 short[][] log)
        Counts how often the given word occurs in the given log. Ignores events that do not occur in word.
        Parameters:
        word -
        log -
        Returns: