[Numpy-discussion] Rebinning numpy array

2011-11-13 Thread Johannes Bauer
Hi group, I have a rather simple problem, or so it would seem. However I cannot seem to find the right solution. Here's the problem: A Geiger counter measures counts in distinct time intervals. The time intervals are not of constant length. Imaging for example that the counter would always

Re: [Numpy-discussion] Odd-looking long double on windows 32 bit

2011-11-13 Thread Charles R Harris
On Sun, Nov 13, 2011 at 12:57 AM, Matthew Brett matthew.br...@gmail.comwrote: Hi, On Sat, Nov 12, 2011 at 11:35 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, Sorry for my continued confusion here. This is numpy 1.6.1 on windows XP 32 bit. In [2]: np.finfo(np.float96).nmant

Re: [Numpy-discussion] Rebinning numpy array

2011-11-13 Thread Robert Kern
On Sun, Nov 13, 2011 at 16:04, Johannes Bauer dfnsonfsdu...@gmx.de wrote: Hi group, I have a rather simple problem, or so it would seem. However I cannot seem to find the right solution. Here's the problem: A Geiger counter measures counts in distinct time intervals. The time intervals are

Re: [Numpy-discussion] Rebinning numpy array

2011-11-13 Thread Olivier Delalleau
Just one thing: numpy.interp says it doesn't check that the x coordinates are increasing, so make sure it's the case. Assuming this is ok, I could still see how you may get some non-smooth behavior: this may be because your spike can either be split between two bins (which dilutes it somehow), or

Re: [Numpy-discussion] Rebinning numpy array

2011-11-13 Thread Olivier Delalleau
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. -=- Olivier 2011/11/13 Olivier Delalleau

Re: [Numpy-discussion] Rebinning numpy array

2011-11-13 Thread Olivier Delalleau
(Sorry for the spam, I should have given more thought to this before hitting reply). It actually seems to me that using a linear interpolation is not a good idea, since it will throw out a lot of information if you decrease the number of bins: to compute the value at time t, it will only use the

Re: [Numpy-discussion] Rebinning numpy array

2011-11-13 Thread Robert Kern
On Sun, Nov 13, 2011 at 17:48, Olivier Delalleau sh...@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,

Re: [Numpy-discussion] Rebinning numpy array

2011-11-13 Thread Olivier Delalleau
2011/11/13 Robert Kern robert.k...@gmail.com On Sun, Nov 13, 2011 at 17:48, Olivier Delalleau sh...@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.

[Numpy-discussion] ANN: SciPy 0.10.0 released

2011-11-13 Thread Ralf Gommers
Hi all, I am pleased to announce the availability of SciPy 0.10.0. For this release over a 100 tickets and pull requests have been closed, and many new features have been added. Some of the highlights are: - support for Bento as a build system for scipy - generalized and shift-invert

Re: [Numpy-discussion] ANN: SciPy 0.10.0 released

2011-11-13 Thread Charles R Harris
On Sun, Nov 13, 2011 at 12:19 PM, Ralf Gommers ralf.gomm...@googlemail.comwrote: Hi all, I am pleased to announce the availability of SciPy 0.10.0. For this release over a 100 tickets and pull requests have been closed, and many new features have been added. Some of the highlights are: -

Re: [Numpy-discussion] ANN: SciPy 0.10.0 released

2011-11-13 Thread Gael Varoquaux
On Sun, Nov 13, 2011 at 12:32:10PM -0700, Charles R Harris wrote: Congratulations to all. This looks like a nice release. And congratulations to Ralf for moving this forward! G ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

Re: [Numpy-discussion] Odd-looking long double on windows 32 bit

2011-11-13 Thread Matthew Brett
Hi, On Sun, Nov 13, 2011 at 8:21 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Nov 13, 2011 at 12:57 AM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Sat, Nov 12, 2011 at 11:35 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, Sorry for my continued

Re: [Numpy-discussion] Odd-looking long double on windows 32 bit

2011-11-13 Thread Charles R Harris
On Sun, Nov 13, 2011 at 2:25 PM, Matthew Brett matthew.br...@gmail.comwrote: Hi, On Sun, Nov 13, 2011 at 8:21 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Nov 13, 2011 at 12:57 AM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Sat, Nov 12, 2011 at

Re: [Numpy-discussion] Odd-looking long double on windows 32 bit

2011-11-13 Thread Matthew Brett
Hi, On Sun, Nov 13, 2011 at 1:34 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Nov 13, 2011 at 2:25 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Sun, Nov 13, 2011 at 8:21 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Nov 13, 2011 at 12:57

Re: [Numpy-discussion] Odd-looking long double on windows 32 bit

2011-11-13 Thread Charles R Harris
On Sun, Nov 13, 2011 at 3:56 PM, Matthew Brett matthew.br...@gmail.comwrote: Hi, On Sun, Nov 13, 2011 at 1:34 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Nov 13, 2011 at 2:25 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Sun, Nov 13, 2011 at 8:21