Class UniformDistributionImpl

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

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

      • UniformDistributionImpl

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

      • getA

        public double getA()
      • getB

        public double getB()
      • cumulativeProbability

        public double cumulativeProbability​(double x)
                                     throws org.apache.commons.math.MathException
        Throws:
        org.apache.commons.math.MathException
      • getDomainLowerBound

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

        protected double getDomainUpperBound​(double p)
        Specified by:
        getDomainUpperBound in class org.apache.commons.math.distribution.AbstractContinuousDistribution
      • getMean

        public double getMean()
      • getVariance

        public double getVariance()
      • getInitialDomain

        protected double getInitialDomain​(double p)
        Specified by:
        getInitialDomain in class org.apache.commons.math.distribution.AbstractContinuousDistribution