Re: [Rd] What should dnorm(0, 0, -Inf) return?

2019-12-08 Thread Martin Maechler
> peter dalgaard > on Sun, 8 Dec 2019 12:11:50 +0100 writes: > Yes, that looks like a bug and an easily fixable one too. agreed. > However, I spy another issue: Why do we check the > !R_FINITE(x) && mu == x before checking for sd < 0 ? The > difference is whether we

Re: [Rd] Maybe bug? Using non-integer frequencies in stats::ts

2019-12-08 Thread Duncan Murdoch
I've now posted this as an enhancement request: https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17669 On 06/12/2019 12:35 p.m., Duncan Murdoch wrote: To R-devel: I've sent this to Johann privately already; just in case anyone else is interested in this issue, here's what I wrote: Just sta

Re: [Rd] What should dnorm(0, 0, -Inf) return?

2019-12-08 Thread peter dalgaard
Yes, that looks like a bug and an easily fixable one too. However, I spy another issue: Why do we check the !R_FINITE(x) && mu == x before checking for sd < 0 ? The difference is whether we return ML_NAN; or ML_ERR_return_NAN; but surely negative sd should always be an error? I'd be inclined