rfun: Randomly draws from a one-dimensional KDE

View source: R/utils.R

rfunR Documentation

Randomly draws from a one-dimensional KDE

Description

Randomly draws from a one-dimensional KDE

Usage

rfun(n, fhat)

Arguments

n

Number of samples to draw

fhat

A list with elements x, w, and h (h is the KDE bandwidth).

Value

A vector of n samples from the KDE fhat

Author(s)

Caroline Ring

References

Ring, Caroline L., et al. "Identifying populations sensitive to environmental chemicals by simulating toxicokinetic variability." Environment International 106 (2017): 105-118


httk documentation built on March 7, 2023, 7:26 p.m.