[Numpy-discussion] np.histogram on arrays.

Éric Depagne eric@depagne....
Tue Mar 29 09:13:36 CDT 2011


> FWIW, have you considered to use
> http://docs.scipy.org/doc/numpy/reference/generated/numpy.histogramdd.html#
> numpy.histogramdd
> 
> Regards,
> eat
> 
I tried, but I get a 
/usr/lib/pymodules/python2.6/numpy/lib/function_base.pyc in 
histogramdd(sample, bins, range, normed, weights)
    370     # Reshape is used so that overlarge arrays

    371     # will raise an error.

--> 372     hist = zeros(nbin, float).reshape(-1)
    373 
    374     # Compute the sample indices in the flattened histogram matrix.


ValueError: sequence too large; must be smaller than 32

so I suspect my array is too big for histogramdd

Éric.
-- 
Un clavier azerty en vaut deux
----------------------------------------------------------
Éric Depagne                            eric@depagne.org


More information about the NumPy-Discussion mailing list