public class PrefixClosedLanguage
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
PrefixClosedLanguage.Trace
Internally used to represent a word in the language (consisting of an
ordered list of letters)
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<PrefixClosedLanguage.Trace,java.lang.Integer> |
traces |
protected java.util.Map<java.lang.Integer,java.lang.Integer> |
weights |
| Constructor and Description |
|---|
PrefixClosedLanguage(org.deckfour.xes.model.XLog log,
java.util.Map<org.deckfour.xes.classification.XEventClass,java.lang.Integer> indices,
org.deckfour.xes.classification.XEventClasses classes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
getLastTransitionVector() |
int |
getMaxWordLength()
returns the length of the longest word in the language
|
int[][] |
getTransitionCountMatrix()
returns a list containing the amounts by which each letter ocurred in
each word in the language.
|
int[][] |
getTransitionCountMatrix(int ignoredEventsFromEnd)
returns a list containing the amounts by which each letter ocurred in
each word in the language.
|
int |
getWeight(int index) |
int[] |
getWeights()
returns a list containing the amounts by which each word ocurred in the
language
|
int |
getWeightsTotal() |
int |
last()
returns the amount of words in the language minus one (the maximum index
of the words)
|
protected final java.util.Map<PrefixClosedLanguage.Trace,java.lang.Integer> traces
protected final java.util.Map<java.lang.Integer,java.lang.Integer> weights
public PrefixClosedLanguage(org.deckfour.xes.model.XLog log,
java.util.Map<org.deckfour.xes.classification.XEventClass,java.lang.Integer> indices,
org.deckfour.xes.classification.XEventClasses classes)
log - mapping - between the eventclasses and an integereventclasses - in the logpublic int last()
public int[][] getTransitionCountMatrix()
public int[][] getTransitionCountMatrix(int ignoredEventsFromEnd)
ignoredEventsFromEnd - - number of ignored letters from the end of the wordpublic int[] getLastTransitionVector()
public int getWeight(int index)
public int[] getWeights()
public int getWeightsTotal()
public int getMaxWordLength()