cdf_categorical

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

CDF of a categorical variate.

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

Return: the cumulative probability.