public class UntrainableDistribution extends SimpleDistribution
registerWithTrainer
method.
It is useful for building Markov models where you wish to train only
a subset of the Distributions.SimpleDistribution.Trainer
Distribution.NullModelForwarder
nullModelForwarder
NULL_MODEL, WEIGHTS
Constructor and Description |
---|
UntrainableDistribution(FiniteAlphabet alpha)
Construct a new untrainable distribution over the specified alphabet.
|
Modifier and Type | Method and Description |
---|---|
void |
registerWithTrainer(DistributionTrainerContext dtc)
Register an SimpleDistribution.Trainer instance as the trainer for this distribution.
|
getAlphabet, getNullModel, getWeightImpl, getWeights, hasWeights, setNullModelImpl, setWeightImpl
equals, getChangeSupport, getWeight, hashCode, sampleSymbol, setNullModel, setWeight
addChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public UntrainableDistribution(FiniteAlphabet alpha)
alpha
- the finite alphabet to be overpublic void registerWithTrainer(DistributionTrainerContext dtc)
SimpleDistribution
registerWithTrainer
in interface Distribution
registerWithTrainer
in class SimpleDistribution
dtc
- the context to register withCopyright © 2014 BioJava. All rights reserved.