ashr icon indicating copy to clipboard operation
ashr copied to clipboard

dens() function gives NaNs when unimix object includes pointmass

Open mengyin opened this issue 8 years ago • 0 comments

For example:

g=unimix(c(0.5,0.5),c(0,0),c(0,1)) dens(g, 0.5)

will output NaN.

I think the reason is that in function comp_dens.unimix(), dunif(d, m$a, m$b, log) produces NaNs when m$a==m$b.

mengyin avatar Mar 04 '17 02:03 mengyin