[SciPy-user] histogramdd question

Chris Lee c.j.lee@tnw.utwente...
Thu Aug 16 03:50:14 CDT 2007


Thanks David,

That makes sense. How difficult would it be to put in an optional 
parameter to only use integers?
In some sense this doesn't matter too much since I can (in pathological 
cases) end up with a 700 GB histogram but normally It clocks in between 
0.8-2 GB. In the end type casting isn't going to stop me from grabbing 
all the memory I can.



David Huard wrote:
> Hi Chris,
>
> histogramdd will consist of floats when it is normalized or when 
> non-integer weights are given. I thought it was preferable to return 
> floats in all cases so the output is consistent no matter what. It 
> could be changed if there is a compelling argument, but I'd rather not 
> risk the chance of breaking someone's code.
>
> Cheers,
>
> David
>
> 2007/8/15, Chris Lee <c.j.lee@tnw.utwente.nl 
> <mailto:c.j.lee@tnw.utwente.nl>>:
>
>     Hi All,
>
>     I have been using histogramdd to generate histograms of a 4-D data
>     set.
>     A histogram should, I believe, return integers but histogramdd returns
>     doubles. Is there are reason for this?
>
>     Cheers
>     Chris
>
>     --
>     **********************************************
>     *  Chris Lee                                 *
>     *  Laser physics and nonlinear optics group  *
>     *  MESA+ Institute                           *
>     *  University of Twente                      *
>     *  Phone: ++31 (0)53 489 3968                *
>     *  fax: ++31 (0) 53 489 1102                 *
>     **********************************************
>
>     _______________________________________________
>     SciPy-user mailing list
>     SciPy-user@scipy.org <mailto:SciPy-user@scipy.org>
>     http://projects.scipy.org/mailman/listinfo/scipy-user
>
>

-- 
**********************************************
*  Chris Lee                                 *
*  Laser physics and nonlinear optics group  *
*  MESA+ Institute                           *
*  University of Twente                      *
*  Phone: ++31 (0)53 489 3968                *
*  fax: ++31 (0) 53 489 1102                 *
**********************************************



More information about the SciPy-user mailing list