|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A context within a group of DistributionTrainers can be trained together.
Method Summary | |
void |
addCount(Distribution dist,
Symbol sym,
double times)
Registers that sym was counted in this state. |
void |
clearDistributionCounts()
Clears all of the counts to zero. |
DistributionTrainer |
getDistributionTrainer(Distribution dist)
Return the Distribution trainer object from the current context. |
void |
registerDistribution(Distribution dist)
Register a distribution object |
void |
registerDistributionTrainer(Distribution dist,
DistributionTrainer trainer)
Register a distribution and an associated distributiontrainer object |
void |
trainDistributions()
Trains the Distribution, given a null model. |
Method Detail |
public void registerDistribution(Distribution dist)
public void registerDistributionTrainer(Distribution dist, DistributionTrainer trainer)
dist
- the distribution to be registered.trainer
- the distribution's trainer object to be registered.public DistributionTrainer getDistributionTrainer(Distribution dist)
dist
- the Distribution whose trainer is required.public void addCount(Distribution dist, 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.
dist
- the Distribution that the symbol was associated withsym
- the Symbol seentimes
- the number of times to addpublic void trainDistributions() throws IllegalSymbolException
This will use the information collected with multiple addCount calls, and the null model to generate the new weights.
nullModel
- the null model Distributionweight
- how many lots of the null model to addpublic void clearDistributionCounts()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |