[Rd] pweibull.c (PR#1334)

terra@diku.dk terra@diku.dk
Thu, 28 Feb 2002 21:48:19 +0100 (MET)


Full_Name: M Welinder
Version: 1.4
OS: (src)
Submission from: (NULL) (192.5.35.38)


It seems to me that pweibull can be improved in the lower_tail=TRUE and
log_p=FALSE
case by using expm1.  Something like

-expm1(-pow(x / scale, shape)),

I think.


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._