Categorical(Double[] p)

The categorical distribution.

Parameters

  • Double[] p - the probability distribution over integer states 1 to K.

Return type

Integer