Empirical Density Function
..
approxdens(x, ...)
x
: numeric vector , observations...
: additional parameters of density.defaultFunction approxdens()
returns a function .
approx inside density.default
another 'layer' of approxfun
x = rnorm(1e3L) f = approxdens(x) f(x[1:3])
Useful links