Description Usage Arguments Examples
Generates all points on a p,n simplex lattice (i.e. a p-part composition of n). Each point is represented as x, a p-dimensional vector of nonnegative integers that sum to n. If argument "fun" is not null, applies a function given by the argument to each point. If simplify is FALSE, returns a list; else returns a vector or an array. "..." are passed unchanged to function given by argument fun, if any.
1 |
p |
first parameter of lattice description |
n |
second parameter of lattice description |
fun |
function to be applied pointwise |
simplify |
logical: if FALSE, value is a list, otherwise a vector or array |
... |
parameters to be passed to |
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.