T - The object type passed to the ObjectKeyGenerator provided at
construction time of Bigram object.public class Bigram<T> extends Object
UsageModel from a set of
traces. The model is generated using the bigram method, meaning that the
probability for each next state only depends on the previous state. Usage of
the class should be:
UsageModel using getModel() method.| Modifier and Type | Field and Description |
|---|---|
static String |
END_STATE_ID |
static String |
START_STATE_ID |
| Constructor and Description |
|---|
Bigram(ObjectKeyGenerator<T> keyGen)
Create a new
Bigram object. |
| Modifier and Type | Method and Description |
|---|---|
void |
addTrace(Iterator<T> trace)
Add a trace to the bigram.
|
be.vibes.ts.UsageModel |
getModel()
Return the model inferred from the given traces.
|
public static final String START_STATE_ID
public static final String END_STATE_ID
public Bigram(ObjectKeyGenerator<T> keyGen)
Bigram object.keyGen - The key generator used to generate the key corresponding to
each trace entry.public void addTrace(Iterator<T> trace)
trace - The trace to add.public be.vibes.ts.UsageModel getModel()
Bigram
instance.Copyright © 2014–2018 University of Namur. All rights reserved.