Description Usage Arguments Value Examples
Sample from a probability mass function (PMF) via Latin hypercube sampling.
1 | LHSpmf(pmf, sampleSize, seed)
|
pmf |
A 2-column data frame as a PMF. The 1st column is sorted and contains value points. The 2nd column contains probabilities. Probabilities should sum up to 1. |
sampleSize |
Sample size. |
seed |
An integer vector of size 1 or 4. Both seed a |
Random samples from pmf
as a numeric vector of size sampleSize
.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.