[Numpy-discussion] Rebinning numpy array
robert.kern at gmail.com
Sun Nov 13 12:55:21 EST 2011
On Sun, Nov 13, 2011 at 17:48, Olivier Delalleau <shish at keba.be> wrote:
> Also: it seems like you are using values at the boundaries of the bins,
> while I think it would make more sense to compute interpolated values at the
> middle point of a bin. I'm not sure it'll make a big difference visually,
> but it may be more appropriate.
No, you do want to compute the interpolated values at the boundaries
of the new bins. Then differencing the values at the boundaries will
give you the correct values for the "mass" between the bounds.
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the NumPy-Discussion