[Numpy-discussion] incremental histogram
Neal Becker
ndbecker2 at gmail.com
Tue May 4 08:09:53 EDT 2010
denis wrote:
> On 03/05/2010 16:02, Neal Becker wrote:
>> I have coded in c++ a histogram object that can be used as:
>>
>> h += my_sample
>>
>> or
>>
>> h += my_vector
>>
>> This is very useful in simulations which are looping and developing
>> results
>> incrementally. It would me great to have such a feature in numpy.
>
> Neal,
> I like the idea of a faster np.histogram / histogramdd;
> but it would have to be compatible with numpy and pylab
> or at least a clear, documented subset (doc first).
The point is not to be faster, it's to be incremental.
>
> Some Wibnis, wouldn't it be nice ifs, for WibniHistogram:
> - gui with realtime zoom / upsample / smooth: must exist, physicists ?
> - adaptive binning, e.g. percentiles then uniform
> - interpolate: fill holes, then *linear or spline
>
> += data is nice, but seems orthogonal to histogramming --
> why not just subclass histogram ?
>
I thought np histogram was a function, not a class? To be incremental, it
has to have state, and so should be a class.
More information about the NumPy-Discussion
mailing list