Class Composition

  • Direct Known Subclasses:
    DNAComposition

    public class Composition
    extends java.lang.Object
    Computes composition statistics about a SymbolList. Essentially a conveniece wrapper around a Distribution.
    Since:
    1.6
    Author:
    Mark Schreiber
    • Constructor Summary

      Constructors 
      Constructor Description
      Composition()  
    • Constructor Detail

      • Composition

        public Composition()
    • Method Detail

      • 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