Description Usage Arguments Details Author(s) Examples
These functions provide information about the discrete distribution
where the probability of the elements of values
is proportional
to the values given in probs
, which are normalized to sum up to
1. ddiscrete
gives the density, pdiscrete
gives the
distribution function, qdiscrete
gives the quantile function
and rdiscrete
generates random deviates.
1 2 3 4 |
x,q |
vector or array of quantiles. |
p |
vector or array of probabilities. |
n |
number of observations. |
probs |
probabilities of the distribution. |
values |
values of the distribution. |
... |
ignored (only there for backwards compatibility) |
The random number generator is simply a wrapper for
sample
and provided for backwards compatibility only.
Andreas Weingessel and Friedrich Leisch
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.