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
 
 public class UntrainableDistribution extends SimpleDistribution 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-opregisterWithTrainermethod. 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:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.biojava.bio.dist.SimpleDistributionSimpleDistribution.Trainer
 - 
Nested classes/interfaces inherited from interface org.biojava.bio.dist.DistributionDistribution.NullModelForwarder
 
- 
 - 
Field Summary- 
Fields inherited from class org.biojava.bio.dist.AbstractDistributionnullModelForwarder
 - 
Fields inherited from interface org.biojava.bio.dist.DistributionNULL_MODEL, WEIGHTS
 
- 
 - 
Constructor SummaryConstructors Constructor Description UntrainableDistribution(FiniteAlphabet alpha)Construct a new untrainable distribution over the specified alphabet.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidregisterWithTrainer(DistributionTrainerContext dtc)Register an SimpleDistribution.Trainer instance as the trainer for this distribution.- 
Methods inherited from class org.biojava.bio.dist.SimpleDistributiongetAlphabet, getNullModel, getWeightImpl, getWeights, hasWeights, setNullModelImpl, setWeightImpl
 - 
Methods inherited from class org.biojava.bio.dist.AbstractDistributionequals, getChangeSupport, getWeight, hashCode, sampleSymbol, setNullModel, setWeight
 - 
Methods inherited from class org.biojava.utils.AbstractChangeableaddChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.biojava.utils.ChangeableaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
 
- 
 
- 
- 
- 
Constructor Detail- 
UntrainableDistributionpublic UntrainableDistribution(FiniteAlphabet alpha) Construct a new untrainable distribution over the specified alphabet.- Parameters:
- alpha- the finite alphabet to be over
 
 
- 
 - 
Method Detail- 
registerWithTrainerpublic void registerWithTrainer(DistributionTrainerContext dtc) Description copied from class:SimpleDistributionRegister an SimpleDistribution.Trainer instance as the trainer for this distribution.- Specified by:
- registerWithTrainerin interface- Distribution
- Overrides:
- registerWithTrainerin class- SimpleDistribution
- Parameters:
- dtc- the context to register with
 
 
- 
 
-