Interface CDFIfc

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      double cdf​(double x)
      Returns the F(x) = Pr{X <= x} where F represents the cumulative distribution function
      default double cdf​(double x1, double x2)
      Returns the Pr{x1<=X<=x2} for the distribution
      default double complementaryCDF​(double x)
      Computes the complementary cumulative probability distribution function for given value of x
    • Method Detail

      • cdf

        double cdf​(double x)
        Returns the F(x) = Pr{X <= x} where F represents the cumulative distribution function
        Parameters:
        x - a double representing the upper limit
        Returns:
        a double representing the probability
      • cdf

        default double cdf​(double x1,
                           double x2)
        Returns the Pr{x1<=X<=x2} for the distribution
        Parameters:
        x1 - a double representing the lower limit
        x2 - a double representing the upper limit
        Returns:
        cdf(x2)-cdf(x1)
        Throws:
        java.lang.IllegalArgumentException - if x1 > x2
      • complementaryCDF

        default double complementaryCDF​(double x)
        Computes the complementary cumulative probability distribution function for given value of x
        Parameters:
        x - The value to be evaluated
        Returns:
        The probability, 1-P{X<=x}