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