powered by
Extract probability mass function from vector of samples
extract_pmf(x, support = NULL)
Vector of samples from a distribution.
Vector of all possible values that the distribution can take. Can be NULL.
Dataframe with columns: Value, Probability.
Value
Probability.
# NOT RUN { extract_pmf(round(rnorm(1e4, 0, 10))) # }
Run the code above in your browser using DataLab