sf

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

Returns the survival function value at k.

Computed directly as (1 - probability)^(k+1) rather than 1 - cdf(k), which avoids catastrophic cancellation in the upper tail.

Return

the probability that the number of failures is strictly greater than k.

Parameters

k

the integer point at which to evaluate the survival probability.