pmf | R Documentation |
A constructor function for objects of class pmf
, either from
the values and associated probability mass or from a sample of the desired
distribution.
pmf(x = NULL, value, prob)
x |
a numeric vector. This optional argument is used to compute a |
value |
a numeric vector containing the possible values within the |
prob |
a numeric vector containing the probability mass associated with
each |
a list
with $value
and $prob
of class pmf
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.