Hi Dennis, > Hi all, > > Now that I look at this code again, should we not attempt to avoid divide by > zero in case a == b, in this method, and perhaps other methods of this > class? > I think the constructor takes care of this special case.
> > Also, looking that the Wikipedia article, at > http://en.wikipedia.org/wiki/Triangular_distribution (which is referenced in > the javadoc of this class), "if (p <= (c - a) / (b - a))" should become "if > (p < (c - a) / (b - a)) " instead. Just to keep it consistent with the > Wikipedia article...? > > Best regards, > Dennis > I really have no opinion on this subject. Sébastien --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org