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:
- Changeable, Distribution, Serializable
- 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-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:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UntrainableDistribution
public UntrainableDistribution(FiniteAlphabet alpha)
- Construct a new untrainable distribution over the specified alphabet.
- Parameters:
alpha - the finite alphabet to be over
registerWithTrainer
public void registerWithTrainer(DistributionTrainerContext dtc)
- Description copied from class:
SimpleDistribution
- Register an SimpleDistribution.Trainer instance as the trainer for this distribution.
- Specified by:
registerWithTrainer in interface Distribution- Overrides:
registerWithTrainer in class SimpleDistribution