Interface ProbabilityDistribution<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double getCDF​(T x)
      Returns the cumulative distribution function for a value
      double getInverseCDF​(T p)
      Given a probability, return the value that returns this cdf
      double getPDF​(T x)
      Return the probability density function for a value
      double nextRandom()  
    • Method Detail

      • nextRandom

        double nextRandom()
        Returns:
        The next random number from this distribution
      • getPDF

        double getPDF​(T x)
        Return the probability density function for a value
        Parameters:
        x - The value, not null
        Returns:
        The pdf
      • getCDF

        double getCDF​(T x)
        Returns the cumulative distribution function for a value
        Parameters:
        x - The value, not null
        Returns:
        The cdf
      • getInverseCDF

        double getInverseCDF​(T p)
        Given a probability, return the value that returns this cdf
        Parameters:
        p - The probability, not null. $0 \geq p \geq 1$
        Returns:
        The inverse cdf