observe_negative_binomial

function observe_negative_binomial(x:Integer, k:Integer, ρ:Real) -> Real

Observe a negative binomial variate.

  • x: The variate (number of failures).
  • k: Number of successes before the experiment is stopped.
  • ρ: Probability of success.

Returns: the log probability mass.