Package 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 aSymbolList
. Essentially a conveniece wrapper around a Distribution.- Since:
- 1.6
- Author:
- Mark Schreiber
-
-
Constructor Summary
Constructors Constructor Description Composition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Distribution
getDistribution()
Returns the distribution backing this class.void
setSymbolList(SymbolList symbolList)
Set theSymbolList
to calculation the composition of.
-
-
-
Constructor Detail
-
Composition
public Composition()
-
-
Method Detail
-
setSymbolList
public void setSymbolList(SymbolList symbolList) throws IllegalSymbolException
Set theSymbolList
to calculation the composition of.- Parameters:
symbolList
- aSymbolList
from the DNA Alphabet.- Throws:
IllegalSymbolException
- ifsymbolList
is not DNA.
-
getDistribution
public Distribution getDistribution()
Returns the distribution backing this class.- Returns:
- a
Distribution
-
-