lpartition_negative_binomial

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

Log partition function of a negative binomial variate.

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

Return: the log of the normalization constant.