Re: MannWhitneyUTest.mannWhitneyU

2013-08-25 Thread Ted Dunning
I think that it will be somewhat slower, but next to imperceptibly so. It will not be any more accurate. It should be noted, however, that this code will fail for input longer than 2^16 because of integer overflow. On Sun, Aug 25, 2013 at 8:27 PM, Dave Brosius wrote: > I would think that in

[math] .mannWhitneyU

2013-08-25 Thread Phil Steitz
On Aug 26, 2013, at 8:57 AM, Dave Brosius wrote: > I would think that in > > public double mannWhitneyU(final double[] x, final double[] y) > > > > final double U1 = sumRankX - (x.length * (x.length + 1)) / 2; Hey thanks for looking at the code! I agree forcing double arithmetic is bette

MannWhitneyUTest.mannWhitneyU

2013-08-25 Thread Dave Brosius
I would think that in public double mannWhitneyU(final double[] x, final double[] y) final double U1 = sumRankX - (x.length * (x.length + 1)) / 2; should be final double U1 = sumRankX - (x.length * (x.length + 1)) / 2*.0*; right?

Re: [Math] Improving combinationIterator?

2013-08-25 Thread Phil Steitz
On 8/25/13 9:59 AM, Gilles wrote: > On Sun, 25 Aug 2013 09:19:41 -0700, Phil Steitz wrote: >> On 8/25/13 8:10 AM, Gilles wrote: >>> On Sat, 24 Aug 2013 21:55:36 -, pste...@apache.org wrote: >>> [...] >>> >>> I wonder whether the utility should involve the creation of >>> an instance of a b

Re: [MATH] What is the derivative of 0^x

2013-08-25 Thread Ajo Fod
Are you saying patched the code? Can you provide the link? -Ajo On Sun, Aug 25, 2013 at 1:20 PM, Luc Maisonobe wrote: > Le 24/08/2013 11:24, Luc Maisonobe a écrit : > > Le 23/08/2013 19:20, Ajo Fod a écrit : > >> Hello, > > > > Hi Ajo, > > > >> > >> This shows one way of interpreting the deriv

Re: [MATH] What is the derivative of 0^x

2013-08-25 Thread Luc Maisonobe
Le 24/08/2013 11:24, Luc Maisonobe a écrit : > Le 23/08/2013 19:20, Ajo Fod a écrit : >> Hello, > > Hi Ajo, > >> >> This shows one way of interpreting the derivative for strictly +ve numbers. >> >> public static void main(final String[] args) { >> final double x = 1d; >> Deriv

Re: svn commit: r1517203 [2/2] - in /commons/proper/math/trunk/src: changes/ main/java/org/apache/commons/math3/analysis/differentiation/ main/java/org/apache/commons/math3/analysis/interpolation/ mai

2013-08-25 Thread Gilles
On Sun, 25 Aug 2013 09:03:56 -0700, Phil Steitz wrote: On 8/25/13 7:47 AM, Gilles wrote: Hi. [...] + +/** + * Verifies that the iterator generates a lexicographically + * increasing sequence of b(n,k) arrays, each having length k + * and each array itself increasing. + * +

Re: [Math] Improving combinationIterator?

2013-08-25 Thread Gilles
On Sun, 25 Aug 2013 09:19:41 -0700, Phil Steitz wrote: On 8/25/13 8:10 AM, Gilles wrote: On Sat, 24 Aug 2013 21:55:36 -, pste...@apache.org wrote: [...] I wonder whether the utility should involve the creation of an instance of a bona fide "Combination" class. I.e. instead of a "naked"

Re: [ALL] Design question: static utility classes

2013-08-25 Thread Adrian Crum
+1 -Adrian On 8/25/2013 9:26 AM, James Carman wrote: AtomicReference? On Sunday, August 25, 2013, Phil Steitz wrote: On 8/24/13 11:33 AM, Oliver Heger wrote: Hi all, regarding a principle design question I would like to get your opinion: In [configuration] there are a few static utility c

Re: [ALL] Design question: static utility classes

2013-08-25 Thread James Carman
AtomicReference? On Sunday, August 25, 2013, Phil Steitz wrote: > On 8/24/13 11:33 AM, Oliver Heger wrote: > > Hi all, > > > > regarding a principle design question I would like to get your opinion: > > > > In [configuration] there are a few static utility classes. One of them > > is BeanHelper w

Re: [Math] Improving combinationIterator? (Was: svn commit: r1517203 [2/2] - in /commons/proper/math/trunk/src: ...)

2013-08-25 Thread Phil Steitz
On 8/25/13 8:10 AM, Gilles wrote: > On Sat, 24 Aug 2013 21:55:36 -, pste...@apache.org wrote: > >> [...] > > I wonder whether the utility should involve the creation of > an instance of a bona fide "Combination" class. > I.e. instead of a "naked" > Iterator combinationIterator(int n, int k) >

Re: [imaging] release 1.0 state?

2013-08-25 Thread Andreas Lehmkuehler
Hi Damjan, sounds good :-) Ping me, if you need a helping hand. BR Andreas Lehmkühler Am 23.08.2013 09:03, schrieb Damjan Jovanovic: There's a few last patches I want to add while we can still break the API, but I am away this week, and only fully available for anything the week after next.

Re: svn commit: r1517203 [2/2] - in /commons/proper/math/trunk/src: changes/ main/java/org/apache/commons/math3/analysis/differentiation/ main/java/org/apache/commons/math3/analysis/interpolation/ mai

2013-08-25 Thread Phil Steitz
On 8/25/13 7:47 AM, Gilles wrote: > Hi. > >> [...] >> + >> +/** >> + * Verifies that the iterator generates a lexicographically >> + * increasing sequence of b(n,k) arrays, each having length k >> + * and each array itself increasing. >> + * >> + * Note: the lexicographic or

Re: Need for an alternatives to the main line of code.

2013-08-25 Thread Phil Steitz
On 8/20/13 12:07 PM, Ajo Fod wrote: > My 2c worth. It seems like there is a general bottleneck. A lot of ideas > don't get used because there is a hurdle that people have to make change > that satisfy all code requirements like tests/reuse of blocks etc. This > makes for a larger than necessary hur

Re: [ALL] Design question: static utility classes

2013-08-25 Thread Phil Steitz
On 8/24/13 11:33 AM, Oliver Heger wrote: > Hi all, > > regarding a principle design question I would like to get your opinion: > > In [configuration] there are a few static utility classes. One of them > is BeanHelper which supports the creation of beans from configuration > data. The actual bean c

[Math] Improving combinationIterator? (Was: svn commit: r1517203 [2/2] - in /commons/proper/math/trunk/src: ...)

2013-08-25 Thread Gilles
On Sat, 24 Aug 2013 21:55:36 -, pste...@apache.org wrote: [...] I wonder whether the utility should involve the creation of an instance of a bona fide "Combination" class. I.e. instead of a "naked" Iterator combinationIterator(int n, int k) there would be Iterator combinationIterator(i

Re: svn commit: r1517203 [2/2] - in /commons/proper/math/trunk/src: changes/ main/java/org/apache/commons/math3/analysis/differentiation/ main/java/org/apache/commons/math3/analysis/interpolation/ mai

2013-08-25 Thread Gilles
Hi. [...] + +/** + * Verifies that the iterator generates a lexicographically + * increasing sequence of b(n,k) arrays, each having length k + * and each array itself increasing. + * + * Note: the lexicographic order check only works for n < 10. What about not using a f