View source: R/simulationsfunctions.R
| create_dist_vec | R Documentation |
Cuts-off the (possibly unbounded) probability distribution at 'max.dist' and normalizes the resulting vector of probability to sum up to 1.
create_dist_vec(dist, max.dist)
dist |
probability mass function to use |
max.dist |
maximum value at which to cutoff distribution |
vector of probabilites for values 1:max.dist
geom_dist_fct(1:70)
create_dist_vec(geom_dist_fct, max.dist = 70)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.