Learn R Programming

httk (version 1.8)

rfun: 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