n_multinomial#
- class n_multinomial(probs, n)[source]#
An array of multinomial trials.
- Parameters:
probs (array) – probability of each outcome, which usually should sum to 1
n (int) – number of trials
- Returns:
Array of integer outcomes
Example:
outcomes = hpv.n_multinomial(np.ones(6)/6.0, 50)+1 # Return 50 die-rolls