Interface DiscreteDistribution

    • Method Detail

      • probability

        double probability​(double x)
        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 probability mass function, or PMF for the distribution.
        Parameters:
        x - the value at which the probability mass function is evaluated.
        Returns:
        the value of the probability mass function at x