Re: [Math] MATH-894

2012-11-15 Thread Phil Steitz
ter ideas, I think that is the best way to handle this. Phil > > -Original Message- > From: Phil Steitz [mailto:phil.ste...@gmail.com] > Sent: Thursday, November 15, 2012 1:42 PM > To: Commons Developers List > Subject: Re: [Math] MATH-894 > > On 11/15/12 10:29 AM,

Re: [Math] MATH-894

2012-11-15 Thread Ted Dunning
Yes. Sounds similar. On Thu, Nov 15, 2012 at 11:02 AM, Phil Steitz wrote: > > The assign methods are inherited. The signatures are like > > assign(DoubleFunction), assign(DoubleDoubleFunction, Matrix other) and so > > on. > > OK, assign looks like what I was calling "evaluate" and > DoubleFunc

Re: [Math] MATH-894

2012-11-15 Thread Phil Steitz
On 11/15/12 10:56 AM, Ted Dunning wrote: > On Thu, Nov 15, 2012 at 10:42 AM, Phil Steitz wrote: > >> On 11/15/12 10:29 AM, Ted Dunning wrote: >>> On Thu, Nov 15, 2012 at 10:04 AM, Phil Steitz >> wrote: Do you know how to do that with a primitive array? Can you provide some sample code?

Re: [Math] MATH-894

2012-11-15 Thread Ted Dunning
On Thu, Nov 15, 2012 at 10:42 AM, Phil Steitz wrote: > On 11/15/12 10:29 AM, Ted Dunning wrote: > > On Thu, Nov 15, 2012 at 10:04 AM, Phil Steitz > wrote: > > > >> Do you know how to do that with a primitive array? Can you provide > >> some sample code? > >> > > You don't. See my next paragrap

RE: [Math] MATH-894

2012-11-15 Thread Patrick Meyer
. -Original Message- From: Phil Steitz [mailto:phil.ste...@gmail.com] Sent: Thursday, November 15, 2012 1:42 PM To: Commons Developers List Subject: Re: [Math] MATH-894 On 11/15/12 10:29 AM, Ted Dunning wrote: > On Thu, Nov 15, 2012 at 10:04 AM, Phil Steitz wrote: > >> Do you know ho

Re: [Math] MATH-894

2012-11-15 Thread Phil Steitz
On 11/15/12 10:29 AM, Ted Dunning wrote: > On Thu, Nov 15, 2012 at 10:04 AM, Phil Steitz wrote: > >> Do you know how to do that with a primitive array? Can you provide >> some sample code? >> > You don't. See my next paragraph. > > See the assign method in this class: > > https://github.com/apac

Re: [Math] MATH-894

2012-11-15 Thread Ted Dunning
On Thu, Nov 15, 2012 at 10:04 AM, Phil Steitz wrote: > Do you know how to do that with a primitive array? Can you provide > some sample code? > You don't. See my next paragraph. See the assign method in this class: https://github.com/apache/mahout/blob/trunk/math/src/main/java/org/apache/mah

Re: [Math] MATH-894

2012-11-15 Thread Phil Steitz
On 11/15/12 9:22 AM, Ted Dunning wrote: > On Thu, Nov 15, 2012 at 8:42 AM, Phil Steitz wrote: > >> On 11/15/12 8:01 AM, Ted Dunning wrote: >>> The typical answer to this when adding a functional method like compute >> is to also add a view object. The rationale is that a small number of view >> me

Re: [Math] MATH-894

2012-11-15 Thread Ted Dunning
On Thu, Nov 15, 2012 at 8:42 AM, Phil Steitz wrote: > On 11/15/12 8:01 AM, Ted Dunning wrote: > > > > The typical answer to this when adding a functional method like compute > is to also add a view object. The rationale is that a small number of view > methods can be composed with a small number

Re: [Math] MATH-894

2012-11-15 Thread Phil Steitz
On 11/15/12 8:01 AM, Ted Dunning wrote: > > The typical answer to this when adding a functional method like compute is to > also add a view object. The rationale is that a small number of view methods > can be composed with a small number of compute/aggregate methods to get the > expressive powe

Re: [Math] MATH-894

2012-11-15 Thread Ted Dunning
The typical answer to this when adding a functional method like compute is to also add a view object. The rationale is that a small number of view methods can be composed with a small number of compute/aggregate methods to get the expressive power of what would otherwise require a vast array o

Re: [Math] MATH-894

2012-11-15 Thread Phil Steitz
On 11/15/12 5:40 AM, Gilles Sadowski wrote: > Hi. > >> These changes look fine to me and the addition of the compute method is >> really nice. > Oh, I should have asked whether you can also look at the source code in the > trunk: Currently the "compute(UnivariateStatistic)" method is only > impleme

Re: [Math] MATH-894

2012-11-15 Thread Gilles Sadowski
Hi. > > These changes look fine to me and the addition of the compute method is > really nice. Oh, I should have asked whether you can also look at the source code in the trunk: Currently the "compute(UnivariateStatistic)" method is only implemented internally (in a private inner class of "Descr

RE: [Math] MATH-894

2012-11-15 Thread Patrick Meyer
aving. Patrick -Original Message- From: Gilles Sadowski [mailto:gil...@harfang.homelinux.org] Sent: Thursday, November 15, 2012 6:32 AM To: dev@commons.apache.org Subject: Re: [Math] MATH-894 Hi Patrick. On Mon, Nov 12, 2012 at 02:38:07PM -0500, Patrick Meyer wrote: > Please keep ResizeableDoub

Re: [Math] MATH-894

2012-11-15 Thread Gilles Sadowski
Hi Patrick. On Mon, Nov 12, 2012 at 02:38:07PM -0500, Patrick Meyer wrote: > Please keep ResizeableDoubleArray as its own class. I find it very useful > for more than descriptive statistics. I do like the idea of adding an apply > method to it. Could you please have a look at the JIRA page: htt

Re: [Math] MATH-894

2012-11-12 Thread Phil Steitz
he broken encapsulation, so maybe its best to add the apply or "applyStatistic" method as described below. Phil > > Patrick > > -Original Message- > From: Phil Steitz [mailto:phil.ste...@gmail.com] > Sent: Monday, November 12, 2012 1:23 PM > To: Commons Developers List

RE: [Math] MATH-894

2012-11-12 Thread Patrick Meyer
: Commons Developers List Subject: Re: [Math] MATH-894 On 11/12/12 6:05 AM, Gilles Sadowski wrote: > Hi. > > What do you think about deprecating "getInternalValues"? > Its only use is in "DescriptiveStatistics". I guess that the current > usage could save some time (b

Re: [Math] MATH-894

2012-11-12 Thread Phil Steitz
On 11/12/12 6:05 AM, Gilles Sadowski wrote: > Hi. > > What do you think about deprecating "getInternalValues"? > Its only use is in "DescriptiveStatistics". I guess that the current usage > could save some time (by avoiding the creation of an array and copying the > elements), so that acces to the

[Math] MATH-894

2012-11-12 Thread Gilles Sadowski
Hi. What do you think about deprecating "getInternalValues"? Its only use is in "DescriptiveStatistics". I guess that the current usage could save some time (by avoiding the creation of an array and copying the elements), so that acces to the internal representation should be retained. If so, I th