Class MineSupportedWordsAlgorithm
- java.lang.Object
-
- org.processmining.lpmsupportedwords.algorithms.MineSupportedWordsAlgorithm
-
public class MineSupportedWordsAlgorithm extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MineSupportedWordsAlgorithm()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcountPositiveWitnesses(short[] word, short[][] log)Counts how often the given word occurs in the given log.static org.deckfour.xes.model.XLogmineSupportedWords(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.XLogwordsToLog(java.util.List<Word> words, ShortLog shortLog, org.deckfour.xes.factory.XFactory factory)Transforms a list of Words into an XLog with support attributes.
-
-
-
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:
-
-