cdf

abstract fun cdf(k: Int): Double(source)

Returns the cumulative distribution function (CDF) value at integer k.

The CDF gives the probability that a random variable drawn from this distribution is less than or equal to k. This is the sum of pmf values from the smallest supported value up to k.

Return

the probability that a value is less than or equal to k, in the range [0, 1].

Parameters

k

the integer point at which to evaluate the cumulative probability.


open override fun cdf(x: Double): Double(source)

Returns the CDF value at x, bridging to the integer cdf overload.

Floors x to an integer via floor and delegates to cdf. This override satisfies the Distribution interface contract, which declares cdf(x: Double).

Return

the probability that a value is less than or equal to the floor of x.

Parameters

x

the point at which to evaluate the cumulative probability.