|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransitionTrainer
An object that can be used to train the transitions within a MarkovModel.
Method Summary | |
---|---|
void |
addCount(State from,
State to,
double count)
Add 'count' to the transition from->to. |
void |
clearCounts()
Clears all of the counts to zero. |
void |
train(double nullModel,
double weight)
Trains the transition, given an expected probability, and a weight for that probability. |
Method Detail |
---|
void addCount(State from, State to, double count) throws IllegalSymbolException, IllegalTransitionException
This method may be called multiple times with the same from,to pair in which case, the times should be summed.
from
- the source stateto
- the destination statecount
- the number of counts to add
IllegalSymbolException
IllegalTransitionException
void train(double nullModel, double weight) throws IllegalSymbolException
This is equivalent to adding a count of nullModel * weight to each transition and then training with a weight of 0.
nullModel
- the nullModel to useweight
- how many lots of the null model to add
IllegalSymbolException
void clearCounts()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |