Class IntDistribution

  • All Implemented Interfaces:
    Serializable, Cloneable
    Direct Known Subclasses:
    IntBinomial, IntGeometric, IntHypergeometric, IntPoisson

    public class IntDistribution
    extends IntSequence
    Returns an arbitrarily distributed stream of integer numbers. Its distribution is determined by an arbitrary IntegerDistribution object from the Apache Commons Math library. This class is usually not used directly but through its various sub-classes implementing particular distributions and exposing their parameters as Java Bean properties.
    Author:
    Torsten Hildebrandt
    See Also:
    Serialized Form
    • Constructor Detail

      • IntDistribution

        public IntDistribution()
      • IntDistribution

        public IntDistribution​(org.apache.commons.math3.distribution.IntegerDistribution distribution)
    • Method Detail

      • getDistribution

        public org.apache.commons.math3.distribution.IntegerDistribution getDistribution()
      • setDistribution

        protected void setDistribution​(org.apache.commons.math3.distribution.IntegerDistribution distribution)
        Sets the discrete distribution to use.
      • getValueRange

        public Pair<Double,​Double> getValueRange()
        Description copied from class: DblSequence
        This method computes the minimum and maximum support values (range of possible values) of this stream.
        Overrides:
        getValueRange in class DblSequence
        Returns:
        A Pair containing the minimum and maximum support values.