Documentation of 'org.apache.commons.math.distribution.Distribution' Java class
Distribution
org.apache.commons.math.distribution

Interface Distribution

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      double cumulativeProbability(double x)
      For a random variable X whose values are distributed according to this distribution, this method returns P(X ≤ x).
      double cumulativeProbability(double x0, double x1)
      For a random variable X whose values are distributed according to this distribution, this method returns P(x0 ≤ X ≤ x1).
    • Method Detail

      • cumulativeProbability

        double cumulativeProbability(double x)
                              throws MathException
        For a random variable X whose values are distributed according to this distribution, this method returns P(X ≤ x). In other words, this method represents the (cumulative) distribution function, or CDF, for this distribution.
        Parameters:
        x - the value at which the distribution function is evaluated.
        Returns:
        the probability that a random variable with this distribution takes a value less than or equal to x
        Throws:
        MathException - if the cumulative probability can not be computed due to convergence or other numerical errors.
      • cumulativeProbability

        double cumulativeProbability(double x0,
                                     double x1)
                              throws MathException
        For a random variable X whose values are distributed according to this distribution, this method returns P(x0 ≤ X ≤ x1).
        Parameters:
        x0 - the (inclusive) lower bound
        x1 - the (inclusive) upper bound
        Returns:
        the probability that a random variable with this distribution will take a value between x0 and x1, including the endpoints
        Throws:
        MathException - if the cumulative probability can not be computed due to convergence or other numerical errors.
        java.lang.IllegalArgumentException - if x0 > x1

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.