public interface OrderNDistribution extends Distribution
Order-N distributions are always over a CrossProductAlphabet.
Note: Unlike normal distributions, the total weights for all symbols in the overall alphabet do not sum to 1.0. Instead, the weights of each sub-distribution should sum to 1.0.
This would typically be used in conjunction with an OrderNSymbolList.
Distribution.NullModelForwarder
NULL_MODEL, WEIGHTS
Modifier and Type | Method and Description |
---|---|
Collection |
conditionedDistributions()
Get the conditioned distributions.
|
Alphabet |
getConditionedAlphabet()
Get the conditioned alphabet.
|
Alphabet |
getConditioningAlphabet()
Get the conditioning alphabet of this distribution.
|
Distribution |
getDistribution(Symbol sym) |
void |
setDistribution(Symbol sym,
Distribution dist)
Set the distribution assocated with a symbol.
|
getAlphabet, getNullModel, getWeight, registerWithTrainer, sampleSymbol, setNullModel, setWeight
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
Alphabet getConditioningAlphabet()
Alphabet getConditionedAlphabet()
Collection conditionedDistributions()
void setDistribution(Symbol sym, Distribution dist) throws IllegalSymbolException, IllegalAlphabetException
sym
- the symbol in the conditioning Alphabetdist
- a distribution over the conditioned AlphabetIllegalSymbolException
- if sym is not in the conditioning AlphabetIllegalAlphabetException
- if dist is not over the conditioned
AlphabetDistribution getDistribution(Symbol sym) throws IllegalSymbolException
IllegalSymbolException
Copyright © 2014 BioJava. All rights reserved.