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.void
setSymbolList
(SymbolList symbolList) Set theSymbolList
to calculation the composition of.
-
Constructor Details
-
Composition
public Composition()
-
-
Method Details
-
setSymbolList
Set theSymbolList
to calculation the composition of.- Parameters:
symbolList
- aSymbolList
from the DNA Alphabet.- Throws:
IllegalSymbolException
- ifsymbolList
is not DNA.
-
getDistribution
Returns the distribution backing this class.- Returns:
- a
Distribution
-