pmf_categorical

function pmf_categorical(x:Integer, ρ:Real[_]) -> Real

PMF of a categorical variate.

  • x: The variate.
  • ρ: Category probabilities.

Return: the probability mass.