Description Usage Arguments Value Examples
Extract probability density function from vector of samples
1 | extract_pdf(x, support = NULL, n_density = 2^7)
|
x |
Vector of samples from a distribution. |
support |
Vector of length 2 corresponding to the range of the distribution. Can be NULL. |
n_density |
Number of equally spaced points at which the density is to be estimated (better to use a power of 2). |
Dataframe with columns: Value
, Density.
1 | extract_pdf(rnorm(1e4))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.