Function checked_multinomial

Source
pub fn checked_multinomial(n: u64, ni: &[u64]) -> Option<f64>
Expand description

Computes the multinomial coefficient: n choose n1, n2, n3, ...

Returns None if the elements in ni do not sum to n.