public class UniformDistribution extends AbstractDistribution implements Serializable
Distribution.NullModelForwardernullModelForwarderNULL_MODEL, WEIGHTS| Constructor and Description | 
|---|
UniformDistribution(FiniteAlphabet alphabet)
Create a new UniformDistribution. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Alphabet | 
getAlphabet()
The alphabet from which this spectrum emits symbols. 
 | 
Distribution | 
getNullModel()
Retrieve the null model Distribution that this Distribution recognizes. 
 | 
protected double | 
getWeightImpl(AtomicSymbol s)
Override this method to implement getting the weight for an atomic
 symbol. 
 | 
void | 
registerWithTrainer(DistributionTrainerContext dtc)
Register an IgnoreCountsTrainer instance as the trainer for this
 distribution. 
 | 
protected void | 
setNullModelImpl(Distribution nullModel)
Assign a background distribution. 
 | 
protected void | 
setWeightImpl(AtomicSymbol sym,
             double weight)
Implement this to actually set the weight. 
 | 
equals, getChangeSupport, getWeight, hashCode, sampleSymbol, setNullModel, setWeightaddChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic UniformDistribution(FiniteAlphabet alphabet)
alphabet - the finite alphabet to be overpublic Alphabet getAlphabet()
DistributiongetAlphabet in interface Distributionpublic Distribution getNullModel()
DistributiongetNullModel in interface Distributionprotected void setNullModelImpl(Distribution nullModel) throws IllegalAlphabetException
setNullModelImpl in class AbstractDistributionnullModel - the background distribution to assignIllegalAlphabetException - if nullModel is over an incompattible
    alphabetprotected double getWeightImpl(AtomicSymbol s) throws IllegalSymbolException
AbstractDistributiongetWeightImpl in class AbstractDistributions - the AtomicSymbol to get the weight forIllegalSymbolException - if sym is not knownprotected void setWeightImpl(AtomicSymbol sym, double weight) throws ChangeVetoException
AbstractDistributionDo not inform any listeners. This has already been done for you. Just update state.
setWeightImpl in class AbstractDistributionsym - the AtomicSymbol to update forweight - the new weight for that symbolChangeVetoException - if the change is to be preventedpublic void registerWithTrainer(DistributionTrainerContext dtc)
AbstractDistributionregisterWithTrainer in interface DistributionregisterWithTrainer in class AbstractDistributiondtc - the context to register withCopyright © 2020 BioJava. All rights reserved.