public class SimpleModelTrainer extends SimpleDistributionTrainerContext implements ModelTrainer, Serializable
Constructor and Description |
---|
SimpleModelTrainer() |
Modifier and Type | Method and Description |
---|---|
void |
registerModel(MarkovModel model)
Registers an HMM with this trainer.
|
addCount, clearCounts, getCount, getNullModelWeight, getTrainer, registerDistribution, registerTrainer, setNullModelWeight, train
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCount, clearCounts, getCount, getNullModelWeight, getTrainer, registerDistribution, registerTrainer, setNullModelWeight, train
public SimpleModelTrainer()
public void registerModel(MarkovModel model)
ModelTrainer
If the model has been already registered, then this method should do nothing. If it has not been registered, then this method should loop over every state in the model and register the Distribution returned by getWeight.
registerModel
in interface ModelTrainer
model
- the MarkovModel to trainCopyright © 2014 BioJava. All rights reserved.