Class UniformIntDistributionImpl

  • All Implemented Interfaces:
    Serializable, org.apache.commons.math.distribution.DiscreteDistribution, org.apache.commons.math.distribution.Distribution, org.apache.commons.math.distribution.IntegerDistribution

    public class UniformIntDistributionImpl
    extends org.apache.commons.math.distribution.AbstractIntegerDistribution
    See Also:
    Serialized Form
    • Constructor Detail

      • UniformIntDistributionImpl

        public UniformIntDistributionImpl​(int a,
                                          int b)
                                   throws org.apache.commons.math.MathException
        Throws:
        org.apache.commons.math.MathException
    • Method Detail

      • getA

        public int getA()
      • getB

        public int getB()
      • cumulativeProbability

        public double cumulativeProbability​(int x)
                                     throws org.apache.commons.math.MathException
        Specified by:
        cumulativeProbability in interface org.apache.commons.math.distribution.IntegerDistribution
        Specified by:
        cumulativeProbability in class org.apache.commons.math.distribution.AbstractIntegerDistribution
        Throws:
        org.apache.commons.math.MathException
      • getDomainLowerBound

        protected int getDomainLowerBound​(double p)
        Specified by:
        getDomainLowerBound in class org.apache.commons.math.distribution.AbstractIntegerDistribution
      • getDomainUpperBound

        protected int getDomainUpperBound​(double p)
        Specified by:
        getDomainUpperBound in class org.apache.commons.math.distribution.AbstractIntegerDistribution
      • probability

        public double probability​(int x)
      • getMean

        public double getMean()
      • getVariance

        public double getVariance()