|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Provides an N'th order distribution. This is a distribution over one alphabet which is conditioned on having previously observed one or more other symbols (potentially from different alphabets).
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.
| Nested Class Summary |
| Nested classes inherited from class org.biojava.bio.dist.Distribution |
Distribution.NullModelForwarder |
| Field Summary |
| Fields inherited from interface org.biojava.bio.dist.Distribution |
NULL_MODEL, WEIGHTS |
| Method Summary | |
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. |
| Methods inherited from interface org.biojava.bio.dist.Distribution |
getAlphabet, getNullModel, getWeight, registerWithTrainer, sampleSymbol, setNullModel, setWeight |
| Methods inherited from interface org.biojava.utils.Changeable |
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
| Method Detail |
public Alphabet getConditioningAlphabet()
public Alphabet getConditionedAlphabet()
public Collection conditionedDistributions()
public void setDistribution(Symbol sym,
Distribution dist)
throws IllegalSymbolException,
IllegalAlphabetException
sym - the symbol in the conditioning Alphabetdist - a distribution over the conditioned Alphabet
IllegalSymbolException - if sym is not in the conditioning Alphabet
IllegalAlphabetException - if dist is not over the conditioned
Alphabet
public Distribution getDistribution(Symbol sym)
throws IllegalSymbolException
IllegalSymbolException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||