Generate random sample from density() or wKDE
Description
This function draws random samples given data
and
a density
estimate (or just
providing the correct bandwidth bw
).
Usage
1 2 
Arguments
n 
number of samples 
fhat 
an object of class

weights 
vector of weights. Same length as

data 
underlying sample of 
kernel 
kernel choice for 
bw 
choice of bandwidth. Default:

Examples
1 2 3 4 5 6 
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.