Class ValueAndFrequencyDistribution

java.lang.Object
com.biomatters.geneious.publicapi.documents.sequence.ValueAndFrequencyDistribution
All Implemented Interfaces:
XMLSerializable, XMLSerializable.OldVersionCompatible

public final class ValueAndFrequencyDistribution extends Object implements XMLSerializable, XMLSerializable.OldVersionCompatible
Provides a sorted distribution of longs and the frequency of each of them. Large data sets will not be fully loaded into memory

This class is not thread safe until finishedAddingValues(jebl.util.ProgressListener) has completed, after which it is thread safe.

Since:
API 4.40 (Geneious 5.4.0)
  • Constructor Details

    • ValueAndFrequencyDistribution

      public ValueAndFrequencyDistribution()
      Construct a new empty distribution.
    • ValueAndFrequencyDistribution

      public ValueAndFrequencyDistribution(ValueAndFrequencyDistribution distribution1, ValueAndFrequencyDistribution distribution2) throws IOException
      Constructs a new distribution by adding 2 distributions together
      Parameters:
      distribution1 - the first distribution to add
      distribution2 - the second distribution to add
      Throws:
      IOException - if we can't write the data to disk.
    • ValueAndFrequencyDistribution

      public ValueAndFrequencyDistribution(org.jdom.Element e) throws XMLSerializationException
      Construct a new empty distribution from some previously serialized data.
      Parameters:
      e - the element returned frmo a previous call to toXML()
      Throws:
      XMLSerializationException - if it can't be deserialized.
  • Method Details