org.biojava.bio.molbio
Class Composition
java.lang.Object
org.biojava.bio.molbio.Composition
- Direct Known Subclasses:
- DNAComposition
public class Composition
- extends Object
Computes composition statistics about a SymbolList
.
Essentially a conveniece wrapper around a Distribution.
- Since:
- 1.6
- Author:
- Mark Schreiber
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Composition
public Composition()
setSymbolList
public void setSymbolList(SymbolList symbolList)
throws IllegalSymbolException
- Set the
SymbolList
to calculation the composition of.
- Parameters:
symbolList
- a SymbolList
from the DNA Alphabet.
- Throws:
IllegalSymbolException
- if symbolList
is not DNA.
getDistribution
public Distribution getDistribution()
- Returns the distribution backing this class.
- Returns:
- a
Distribution