extract_pdf: Extract probability density function from vector of samples

Description Usage Arguments Value Examples

View source: R/distribution.R

Description

Extract probability density function from vector of samples

Usage

1
extract_pdf(x, support = NULL, n_density = 2^7)

Arguments

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).

Value

Dataframe with columns: Value, Density.

Examples

1

HuraultMisc documentation built on Sept. 6, 2021, 9:09 a.m.