Re: [Numpy-discussion] Median again

2008-01-30 Thread Jarrod Millman
On Jan 30, 2008 10:41 AM, Travis E. Oliphant <[EMAIL PROTECTED]> wrote: > Yes, we could start to do that (spit out a warning in 1.0.5). This > should definitely be done in 1.0.6 > > Perhaps we use axis=None to start with and then check for that and spit > out the warning (and change axis to 0). Th

Re: [Numpy-discussion] Median again

2008-01-30 Thread Travis E. Oliphant
Timothy Hochberg wrote: > > > On Jan 29, 2008 5:48 PM, Travis E. Oliphant <[EMAIL PROTECTED] > > wrote: > > Joris De Ridder wrote: > > On 30 Jan 2008, at 00:32, Travis E. Oliphant wrote: > > > > > >> Matthew Brett wrote: > >> > >>> Hi, > >>

Re: [Numpy-discussion] Median again

2008-01-30 Thread Timothy Hochberg
On Jan 29, 2008 5:48 PM, Travis E. Oliphant <[EMAIL PROTECTED]> wrote: > Joris De Ridder wrote: > > On 30 Jan 2008, at 00:32, Travis E. Oliphant wrote: > > > > > >> Matthew Brett wrote: > >> > >>> Hi, > >>> > >>> > >>> median moved mediandim0 > >>> implementation of medianwithaxis or simil

Re: [Numpy-discussion] Median again

2008-01-29 Thread Travis E. Oliphant
Joris De Ridder wrote: > On 30 Jan 2008, at 00:32, Travis E. Oliphant wrote: > > >> Matthew Brett wrote: >> >>> Hi, >>> >>> >>> median moved mediandim0 >>> implementation of medianwithaxis or similar, with same call >>> signature as mean. >>> >>> >>

Re: [Numpy-discussion] Median again

2008-01-29 Thread Joris De Ridder
On 30 Jan 2008, at 00:32, Travis E. Oliphant wrote: > Matthew Brett wrote: >> Hi, >> >> median moved mediandim0 >> implementation of medianwithaxis or similar, with same call >> signature as mean. >> >> >> But - for the median function change - do we agree that this should >> be

Re: [Numpy-discussion] Median again

2008-01-29 Thread Travis E. Oliphant
Matthew Brett wrote: > Hi, > > median moved mediandim0 > implementation of medianwithaxis or similar, with same call > signature as mean. > > > But - for the median function change - do we agree that this should be > changed? I think it is a significant wart in the nu

Re: [Numpy-discussion] Median again

2008-01-29 Thread Matthew Brett
Hi, > > >> median moved mediandim0 > > >> implementation of medianwithaxis or similar, with same call > > >> signature as mean. But - for the median function change - do we agree that this should be changed? I think it is a significant wart in the numpy API, and has caught quite a few people...

Re: [Numpy-discussion] Median again

2008-01-29 Thread Eric Firing
Andrew Straw wrote: > Considering that many of the statistical functions (mean, std, median) > must iterate over all the data and that people (or at least myself) > typically call them sequentially on the same data, it may make sense to > make a super-function with less repetition. http://currents

Re: [Numpy-discussion] Median again

2008-01-29 Thread Andrew Straw
Considering that many of the statistical functions (mean, std, median) must iterate over all the data and that people (or at least myself) typically call them sequentially on the same data, it may make sense to make a super-function with less repetition. Instead of: x_mean = np.mean(x) x_median =

Re: [Numpy-discussion] Median again

2008-01-29 Thread Matthew Brett
Hi, > >> median moved mediandim0 > >> implementation of medianwithaxis or similar, with same call > >> signature as mean. > >> > >> Deprecation warning for use of median, and return of mediandim0 for > >> now. Eventual move of median to return medianwithaxis. > > > > This would confuse people even

Re: [Numpy-discussion] Median again

2008-01-29 Thread Alexander Michael
On Jan 29, 2008, at 11:51 AM, Joris De Ridder wrote: > This feature request has been repeatedly asked before (e.g. 6 months > ago). The relevant ticket (#558, although this only asks for axis > support) mentions a milestone 1.1. I would like to ask if it could be > moved somewhat higher on the prio

Re: [Numpy-discussion] Median again

2008-01-29 Thread Joris De Ridder
This feature request has been repeatedly asked before (e.g. 6 months ago). The relevant ticket (#558, although this only asks for axis support) mentions a milestone 1.1. I would like to ask if it could be moved somewhat higher on the priority list. I provided some code for axis support (see

[Numpy-discussion] Median again

2008-01-29 Thread Matthew Brett
Hi, I was wondering whether there was any plan to change the anomalous interface of median, for example compared to 'mean', 'min', 'max' np.mean(a, axis=None, dtype=None, out=None) whereas: np.median(m) 'median(m) returns a median of m along the first dimension of m.' I think it would be a goo