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

\insertRef

ring2017identifyinghttk


httk documentation built on June 22, 2024, 6:48 p.m.