Package org.biojava.bio.dist
Class UntrainableDistribution
java.lang.Object
org.biojava.utils.AbstractChangeable
org.biojava.bio.dist.AbstractDistribution
org.biojava.bio.dist.SimpleDistribution
org.biojava.bio.dist.UntrainableDistribution
- All Implemented Interfaces:
Serializable,Distribution,Changeable
A distribution which does not interact with the training framework.
This class behaves in exactly the same manner as SimpleDistribution,
except that it has a no-op
registerWithTrainer method.
It is useful for building Markov models where you wish to train only
a subset of the Distributions.- Since:
- 1.3
- Author:
- Thomas Down
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.biojava.bio.dist.SimpleDistribution
SimpleDistribution.TrainerNested classes/interfaces inherited from interface org.biojava.bio.dist.Distribution
Distribution.NullModelForwarder -
Field Summary
Fields inherited from class org.biojava.bio.dist.AbstractDistribution
nullModelForwarderFields inherited from interface org.biojava.bio.dist.Distribution
NULL_MODEL, WEIGHTS -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new untrainable distribution over the specified alphabet. -
Method Summary
Modifier and TypeMethodDescriptionvoidRegister an SimpleDistribution.Trainer instance as the trainer for this distribution.Methods inherited from class org.biojava.bio.dist.SimpleDistribution
getAlphabet, getNullModel, getWeightImpl, getWeights, hasWeights, setNullModelImpl, setWeightImplMethods inherited from class org.biojava.bio.dist.AbstractDistribution
equals, getChangeSupport, getWeight, hashCode, sampleSymbol, setNullModel, setWeightMethods inherited from class org.biojava.utils.AbstractChangeable
addChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.biojava.utils.Changeable
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
-
Constructor Details
-
UntrainableDistribution
Construct a new untrainable distribution over the specified alphabet.- Parameters:
alpha- the finite alphabet to be over
-
-
Method Details
-
registerWithTrainer
Description copied from class:SimpleDistributionRegister an SimpleDistribution.Trainer instance as the trainer for this distribution.- Specified by:
registerWithTrainerin interfaceDistribution- Overrides:
registerWithTrainerin classSimpleDistribution- Parameters:
dtc- the context to register with
-