Description Usage Arguments Value
Check whether a vector is an element of the probability simplex
1 | simplex_check(p, allow_zero = TRUE)
|
p |
vector the vector to check |
allow_zero |
boolean whether to allow elements with zero entries (boundary of simplex) |
boolean whether p is a valid probability distribution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.