Description Usage Arguments Value Examples
Computes the number of points on a (p, n)-simplex lattice; that is, the number of p-part compositions of n. This gives the number of points in the support space of a Multinomial(n, q) distribution, where p == length(q).
Arguments p and n are replicated as necessary to have the length of the longer of them.
1 | nsimplex(p, n)
|
p |
vector of integers |
n |
vector of integers |
integer
1 | nsimplex(3,5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.