|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.biojava.bio.dist.IgnoreCountsTrainer
A distribution trainer that just ignores all counts.
Constructor Summary | |
protected |
IgnoreCountsTrainer()
|
Method Summary | |
void |
addCount(DistributionTrainerContext dtc,
Symbol sym,
double times)
Registers that sym was counted in this state. |
void |
clearCounts()
Clears all of the counts to zero. |
static IgnoreCountsTrainer |
getInstance()
Returns the global singleton instance of the IgnoreCountsTrainer |
void |
train(Distribution nullModel,
double weight)
Trains the Distribution, given a null model. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
protected IgnoreCountsTrainer()
Method Detail |
public void addCount(DistributionTrainerContext dtc, Symbol sym, double times) throws IllegalSymbolException
This method may be called multiple times with the same symbol. In this case, the times should be summed.
dtc
- the DistributionTrainerContext within which the count was addedsym
- the Symbol seentimes
- the number of times to addpublic void train(Distribution nullModel, double weight)
This will use the information collected with multiple addCount calls, and the null model to generate the new weights.
This method should not modify the underlying counts.
nullModel
- the null model Distributionweight
- how many lots of the null model to addpublic void clearCounts()
public static IgnoreCountsTrainer getInstance()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |