Description Usage Arguments Details Value Examples
Trim probability distribution to unique events with positive probability
1 |
dist |
list with named numeric vectors |
The function reduces x
to the unique values and sums the corresponding elements from fx
.
list with named numeric vectors x
and fx
, denoting respectively the events and probabilities of the discrete distribution.
1 | dist.unique.events(list(x=c(0,1,1,2),fx=c(0.2,0.25,0.15,0.4)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.