Description Usage Arguments Value Examples
Extract probability mass function from vector of samples
1 | extract_pmf(x, support = NULL)
|
x |
Vector of samples from a distribution. |
support |
Vector of all possible values that the distribution can take. Can be NULL. |
Dataframe with columns: Value
, Probability.
1 | extract_pmf(round(rnorm(1e4, 0, 10)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.