Skip to content
Prev 20741 / 63424 Next

Negatives density values (PR#8876)

On 5/18/2006 10:51 AM, ecu at info.fundp.ac.be wrote:
I wouldn't consider this a bug, rather a consequence of using the 
Fourier transform to do the density estimate, as documented.

If slightly negative values of the density cause trouble for you, then 
use pmax(density, 0) to force them to be non-negative, or use a 
different algorithm for the estimates.

Duncan Murdoch