Extract probability density function from vector of samples
extract_pdf(x, support = NULL, n_density = 2^7)
Vector of samples from a distribution.
Vector of length 2 corresponding to the range of the distribution. Can be NULL.
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.