Re: [Numpy-discussion] histogram help

2012-02-02 Thread Ruby Stevenson
ach (x,y) ? > >   Nadav > > > From: numpy-discussion-boun...@scipy.org [numpy-discussion-boun...@scipy.org] > On Behalf Of Ruby Stevenson [ruby...@gmail.com] > Sent: 30 January 2012 21:27 > To: Discussion of Numerical Python >

Re: [Numpy-discussion] histogram help

2012-01-30 Thread Ruby Stevenson
On Mon, Jan 30, 2012 at 2:21 PM, Ruby Stevenson wrote: > hi, all > > I am trying to figure out how to do histogram with numpy > > I have a three-dimension array A[x,y,z],  another array (bins) has > been allocated along Z dimension, z' > > how can I get the histogra

Re: [Numpy-discussion] condense array along one dimension

2012-01-30 Thread Ruby Stevenson
I think this is exactly what I need. Thanks for your help, Olivier. Ruby On Fri, Jan 20, 2012 at 9:50 AM, Olivier Delalleau wrote: > What do you mean by "summarize"? > If for instance you want to sum along Y, just do >   my_array.sum(axis=1) > > -=- Olivier >

[Numpy-discussion] condense array along one dimension

2012-01-20 Thread Ruby Stevenson
hi, all Say I have a three dimension array, X, Y, Z, how can I condense into two dimensions: for example, compute 2-D array with (X, Z) and summarize along Y dimensions ... is it possible? thanks Ruby ___ NumPy-Discussion mailing list NumPy-Discussion

Re: [Numpy-discussion] getting position index from array

2012-01-20 Thread Ruby Stevenson
Exactly what I need - thank you very much. Ruby On Thu, Jan 19, 2012 at 11:33 PM, Benjamin Root wrote: > > > On Thursday, January 19, 2012, Ruby Stevenson wrote: >> hi, all >> >> I am a newbie on numpy ... I am trying to figure out, given an array, >> how to

[Numpy-discussion] getting position index from array

2012-01-19 Thread Ruby Stevenson
hi, all I am a newbie on numpy ... I am trying to figure out, given an array, how to get back position value based on some conditions. Say, array([1, 0, 0, 0 1], and I want to get a list of indices where it is none-zero, [ 0 , 4 ] The closest thing I can find from the doc is select(), but I can't