public interface TransitionTrainer
Modifier and Type | Method and Description |
---|---|
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.
|
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 addIllegalSymbolException
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 addIllegalSymbolException
void clearCounts()
Copyright © 2014 BioJava. All rights reserved.