View source: R/poisson_distribution.R
poisson_ | R Documentation |
This function calculates the Poisson distribution probability.
poisson_(k = NULL, lam = NULL, learn = FALSE, interactive = FALSE)
k |
Optional number of occurrences (not needed for interactive mode) |
lam |
Optional expected value lambda (not needed for interactive mode) |
learn |
Logical, if TRUE shows step-by-step explanation |
interactive |
Logical, if TRUE enables interactive practice mode |
The Poisson probability (for non-interactive mode)
lam <- 2
k <- 3
# Simple calculation
poisson_(k, lam)
# Learning mode
poisson_(k, lam, learn = TRUE)
# Interactive mode
if(interactive()){
poisson_(interactive = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.