sf

open fun sf(k: Int): Double(source)

Returns the survival function value at integer k.

The survival function is the probability that the random variable is strictly greater than k, equal to 1 - cdf(k).

Return

the probability that a value is greater than k, in the range [0, 1].

Parameters

k

the integer point at which to evaluate the survival probability.


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

Returns the SF value at x, bridging to the integer sf overload.

Floors x to an integer via floor and delegates to sf. Returns Double.NaN if x is NaN.

Return

the probability that a value is greater than the floor of x.

Parameters

x

the point at which to evaluate the survival probability.