Multinomial Coefficient
multinomial(input: any[] | Mat | Tensor ) : Number
param input
a JS array, matrix or tensor, or a series of numbers - the construct to find the multinomial coeff. of
returns Number
- a number representing the multinomial of input
This function simply finds the multinomial coefficient of some numbers according to the following formula. You can think of it as an analogue for the binomial probability distribution and its coefficients. However, this is for multinomial probability distributions.
$$\text{multinomial}(x) = \frac{(x_1 + x_2 + ... + x_n)!}{x_1!\cdot x_2!\cdot ... \cdot x_n!}$$