quantile_negative_binomial

function quantile_negative_binomial(p:Real, k:Integer, ρ:Real) -> Integer

Quantile of a negative binomial distribution.

  • p: The cumulative probability.
  • k: Number of successes before the experiment is stopped.
  • ρ: Probability of success.

Return: the quantile.