Re: [Numpy-discussion] A faster median (Wirth's method)

2009-09-03 Thread Sturla Molden
Chad Netzer skrev: That's right, Robert. Basically, I meant doing a median on a square (or rectangle) view of an array, without first having to ravel(), thus generally saving a copy. But actually, since my selection based median overwrites the source array, it may not save a copy anyway.

Re: [Numpy-discussion] snow leopard and Numeric

2009-09-03 Thread Stefano Covino
Apparently, I have solved the problem. I say apparently meaning that at least it compiles and installs smoothly. In file ranf.c (Packages/RNG/Src/ranf.c) insert at the beginning #include time.h and comment line 153 in the original file, where function 'gettomeofday' is re-defined. Cheers,

Re: [Numpy-discussion] help creating a reversed cumulative histogram

2009-09-03 Thread Tim Michelsen
Okay. That is completely different from what you've asked before. You are right. But it's soemtimes hard to decribe a desired and expected output in python terms and pseudocode. I still have to lern more numpy vocabs... Actually, I apologize. I meant to delete that line before sending

Re: [Numpy-discussion] help creating a reversed cumulative histogram

2009-09-03 Thread Tim Michelsen
Hello, I have checked the snippets you proposed. It does what I wanted to achieve. Obviously, I had to substract the values as Robert demonstrated. This could also be perceived from the figure I posted. I still have see how I can optimise the code (c.f. below) or modify to be less

Re: [Numpy-discussion] A faster median (Wirth's method)

2009-09-03 Thread Charles R Harris
On Thu, Sep 3, 2009 at 12:14 AM, Sturla Molden stu...@molden.no wrote: Chad Netzer skrev: That's right, Robert. Basically, I meant doing a median on a square (or rectangle) view of an array, without first having to ravel(), thus generally saving a copy. But actually, since my selection

Re: [Numpy-discussion] numpy core dump on linux

2009-09-03 Thread Bruce Southey
On 09/02/2009 10:26 PM, Charles R Harris wrote: On Wed, Sep 2, 2009 at 4:23 PM, Jeremy Mayes jeremy.ma...@gmail.com mailto:jeremy.ma...@gmail.com wrote: This one line causes python to core dump on linux. numpy.lexsort([

Re: [Numpy-discussion] help creating a reversed cumulative histogram

2009-09-03 Thread josef . pktd
On Thu, Sep 3, 2009 at 9:23 AM, Tim Michelsentimmichel...@gmx-topmail.de wrote: Hello, I have checked the snippets you proposed. It does what I wanted to achieve. Obviously, I had to substract the values as Robert demonstrated. This could also be perceived from the figure I posted. I

Re: [Numpy-discussion] numpy core dump on linux

2009-09-03 Thread Charles R Harris
On Wed, Sep 2, 2009 at 4:23 PM, Jeremy Mayes jeremy.ma...@gmail.com wrote: This one line causes python to core dump on linux. numpy.lexsort([ numpy.array(['-','-','-','-','-','-','-','-','-','-','-','-','-'])[::-1],numpy.array([732685., 732685., 732685., 732685., 732685., 732685.,732685.,

[Numpy-discussion] snow leopard issues with numpy

2009-09-03 Thread Wolfgang Kerzendorf
I just installed numpy and scipy (both svn) on OS X 10.6 and just got scipy to work with Robert Kern's help. Playing around with numpy I got the following segfault: http://pastebin.com/m35220dbf I hope someone can make sense of it. Thanks in advance Wolfgang

Re: [Numpy-discussion] snow leopard issues with numpy

2009-09-03 Thread Charles R Harris
On Thu, Sep 3, 2009 at 10:02 AM, Wolfgang Kerzendorf wkerzend...@googlemail.com wrote: I just installed numpy and scipy (both svn) on OS X 10.6 and just got scipy to work with Robert Kern's help. Playing around with numpy I got the following segfault: http://pastebin.com/m35220dbf I hope

Re: [Numpy-discussion] snow leopard issues with numpy

2009-09-03 Thread Robert Kern
On Thu, Sep 3, 2009 at 11:13, Charles R Harrischarlesr.har...@gmail.com wrote: On Thu, Sep 3, 2009 at 10:02 AM, Wolfgang Kerzendorf wkerzend...@googlemail.com wrote: I just installed numpy and scipy (both svn) on OS X 10.6 and just got scipy to work with Robert Kern's help. Playing around

Re: [Numpy-discussion] snow leopard issues with numpy

2009-09-03 Thread Charles R Harris
On Thu, Sep 3, 2009 at 10:39 AM, Robert Kern robert.k...@gmail.com wrote: On Thu, Sep 3, 2009 at 11:13, Charles R Harrischarlesr.har...@gmail.com wrote: On Thu, Sep 3, 2009 at 10:02 AM, Wolfgang Kerzendorf wkerzend...@googlemail.com wrote: I just installed numpy and scipy (both svn)

Re: [Numpy-discussion] help creating a reversed cumulative histogram

2009-09-03 Thread Tim Michelsen
My first stop is usually wikipedia: [...] Thanks. So I I'known that I have to call the beast a empirical inverse survival function, Robert would also have foundit easier to help. Anyway, step by step... In the case of the weight of pigs, it would be to cumulative weight of all pigs with a

Re: [Numpy-discussion] help creating a reversed cumulative histogram

2009-09-03 Thread josef . pktd
On Thu, Sep 3, 2009 at 12:58 PM, Tim Michelsentimmichel...@gmx-topmail.de wrote: My first stop is usually wikipedia: [...] Thanks. So I I'known that I have to call the beast a empirical inverse survival function, Robert would also have foundit easier to help. Anyway, step by step... In

Re: [Numpy-discussion] help creating a reversed cumulative histogram

2009-09-03 Thread Tim Michelsen
Again, would a function for the empirical inverse survival function qualify for the inclusion into numpy or scipy? Sorry, I'm too distracted, correcting myself a second time this should *not* have inverse in it, using inverse was a cut and paste error it's empirical survival function I

Re: [Numpy-discussion] snow leopard issues with numpy

2009-09-03 Thread Wolfgang Kerzendorf
my version of python is the one that comes with snow leopard: 2.6.1 hope that helps On 03/09/2009, at 18:13 , Charles R Harris wrote: On Thu, Sep 3, 2009 at 10:02 AM, Wolfgang Kerzendorf wkerzend...@googlemail.com wrote: I just installed numpy and scipy (both svn) on OS X 10.6 and just

Re: [Numpy-discussion] snow leopard issues with numpy

2009-09-03 Thread David Cournapeau
On Fri, Sep 4, 2009 at 1:49 AM, Charles R Harrischarlesr.har...@gmail.com wrote: On Thu, Sep 3, 2009 at 10:39 AM, Robert Kern robert.k...@gmail.com wrote: On Thu, Sep 3, 2009 at 11:13, Charles R Harrischarlesr.har...@gmail.com wrote: On Thu, Sep 3, 2009 at 10:02 AM, Wolfgang Kerzendorf