Description Usage Arguments Value Author(s) Examples
An object representing a discrete distribution is created, based on explicitly given possible values and probabilities for these.
| 1 | discretedistribution(vals, probs = rep(1, length(vals)))
 | 
| vals | A vector listing the possible values of the discrete distribution. | 
| probs | If given,  | 
A discrete probability distribution.
Petter Mostad <mostad@chalmers.se>
| 1 2 3 | dist <- discretedistribution(1:10)
expectation(dist)
variance(dist)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.