sample.discrete
generates a sample of size n
given its density function df
1 | sample.discrete(df, n)
|
df |
The density function - It is assumed that the support is a subset of the natural numbers |
n |
The desired sample size |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.