Package org.biojava.bio.molbio
Class Composition
java.lang.Object
org.biojava.bio.molbio.Composition
- Direct Known Subclasses:
DNAComposition
Computes composition statistics about a
SymbolList.
Essentially a conveniece wrapper around a Distribution.- Since:
- 1.6
- Author:
- Mark Schreiber
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the distribution backing this class.voidsetSymbolList(SymbolList symbolList) Set theSymbolListto calculation the composition of.
-
Constructor Details
-
Composition
public Composition()
-
-
Method Details
-
setSymbolList
Set theSymbolListto calculation the composition of.- Parameters:
symbolList- aSymbolListfrom the DNA Alphabet.- Throws:
IllegalSymbolException- ifsymbolListis not DNA.
-
getDistribution
Returns the distribution backing this class.- Returns:
- a
Distribution
-