Re: [math] basic utilities for probability - isProbability(double) and isSampleSpace(double[])

2012-07-17 Thread ori ziv
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. * You are depended on guava, and I guess you can't do t

Re: [math] basic utilities for probability - isProbability(double) and isSampleSpace(double[])

2012-07-16 Thread ori ziv
it arguments is supposed to be a sample space. * Any other remarks? * Am I on the right track? On Mon, Jul 16, 2012 at 2:36 AM, ori ziv wrote: > Alright. I'll update soon. Meanwhile the drafts are in > http://dl.dropbox.com/u/4481581/commons-math-suggestions.zip > > On Mon, Jul 16,

Re: [math] basic utilities for probability - isProbability(double) and isSampleSpace(double[])

2012-07-15 Thread ori ziv
Alright. I'll update soon. Meanwhile the drafts are in http://dl.dropbox.com/u/4481581/commons-math-suggestions.zip On Mon, Jul 16, 2012 at 1:12 AM, Gilles Sadowski wrote: > On Sun, Jul 15, 2012 at 02:36:56PM +0300, ori ziv wrote: >> Hi, >> >> I've wrote two

[math] basic utilities for probability - isProbability(double) and isSampleSpace(double[])

2012-07-15 Thread ori ziv
ay is one. Prototype is attached. Thanks, Ori Ziv. - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org