package prbnmcn-stats

  1. Overview
  2. Docs
val categorical : ('a * Q.t) array -> 'a t

Categorical distribution. Total mass need not be one. Does not aggregate mass of equal elements.

  • raises Invalid_argument

    if some weights are negative or if the total mass is zero.