partition_negative_binomial

function partition_negative_binomial(k:Integer, ρ:Real) -> Real

Partition function of a negative binomial variate.

  • k: Number of successes before the experiment is stopped.
  • ρ: Probability of success.

Return: the normalization constant.