getDecision | R Documentation |
For given n probabilities 0 <= pi <= 1 with sum(pi)=1, return 0,1,2,3,..,n with probability p0, p1, p2, ..., pn.
getDecision(p)
p |
vector of probabilities |
int decision in the range from 0 to n
p <- c(0.6, 0.3, 0.1) getDecision(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.