commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Sadowski <gil...@harfang.homelinux.org>
Subject Re: [math] basic utilities for probability - isProbability(double) and isSampleSpace(double[])
Date Sat, 21 Jul 2012 13:23:03 GMT
On Tue, Jul 17, 2012 at 06:13:17PM +0300, ori ziv wrote:
> Don't you the following as disadvantages of the Preconditions way ?
> * It forces you to write "p >= 0 && p <= 1" anytime. even it is a
> trivial condition, you might mistake and get the inequality sign in
> the wrong way, or forget the equals sign.

That's a good point.

> * You are depended on guava, and I guess you can't do that on
> functions inside the CM.

Indeed, at this point, CM has no dependencies.


Regards,
Gilles

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message