smooth_density: Smooth Density

Description Usage Arguments Value Examples

View source: R/dpqrdens.R

Description

Smoothes output of density() and returns functions needed to run other functions on the distribution.

Usage

1

Arguments

d

Density object (returned from running density())

Value

List of functions ddens(), pdens(), qdens(), rdens()

Examples

1
2
3
4
5
set.seed(123)
data <- rnorm(10000)
dens <- density(data)

sdens <- smooth_density(dens)

brshallo/densdpqr documentation built on Dec. 19, 2021, 11:49 a.m.