> How many point do you have in np.unique(array) ?
43 currently
On Sun, Oct 3, 2010 at 11:55 PM, wrote:
> On Sun, Oct 3, 2010 at 8:41 AM, Gordon Wrigley wrote:
> > I have an array of uint8's that has a shape of X*Y*Z*8, I would like to
> > calculate modes along the
I have an array of uint8's that has a shape of X*Y*Z*8, I would like to
calculate modes along the 8 axis so that I end up with an array that has the
shape X*Y*Z and is full of modes.
I'm having problems finding a good way of doing this. My attempts at solving
this using bincount or histogram produc
XED for the
heterogeneous
decimated_array = reshaped_array[:,:,:,0]
data_out = numpy.where(not_equal_array, MIXED, decimated_array)
return data_out
Regards Gordon
On Thu, Sep 30, 2010 at 2:36 AM, wrote:
> On Wed, Sep 29, 2010 at 9:19 AM, wrote:
> > On Wed, Sep 29, 2010 at 8:2
Hi
First the disclaimer: This is my first numpy experience, so I have next to
no idea what I'm doing.
I've muddled through and managed to put together some code for my current
problem and now that I have it going I'd like to hear any comments people
may have on both my solution and other ways of