Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-09 Thread Fago, Matt - AES
From: Ryan May The scaling changes are in, as well as the warning and the corresponding lines in api_changes and CHANGELOG. I also added the converted matlab demo I used to figure this stuff out. Now would probably be the time to see if I did something wrong (especially the warning).

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-08 Thread Fago, Matt - AES
-users] Matplotlib PSD bug? Fago, Matt - AES wrote: I suppose the issue is: what is correct? Or is it a matter of definition? I don't have Stoica and Moses, but Bendat and Piersol eqn 11.102: One_Sided_PSD = 2/(n_d * N * dt) * Sum(FFT^2) where there are n_d is the number of averages and N

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-08 Thread John Hunter
On Mon, Dec 8, 2008 at 9:10 AM, Fago, Matt - AES [EMAIL PROTECTED] wrote: So what is to be done here? It seems to me that at least the factor of two should be fixed for one-sided PSDs, and the 1/fs normalization difference with Matlab documented. Ideally, I'd think this normalization would

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-08 Thread Ryan May
John Hunter wrote: On Mon, Dec 8, 2008 at 9:10 AM, Fago, Matt - AES [EMAIL PROTECTED] wrote: So what is to be done here? It seems to me that at least the factor of two should be fixed for one-sided PSDs, and the 1/fs normalization difference with Matlab documented. Ideally, I'd think this

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-08 Thread John Hunter
On Mon, Dec 8, 2008 at 10:56 AM, Ryan May [EMAIL PROTECTED] wrote: My only other concern is whether this belongs in 0.98.x. This is a behavior change from 0.98.3, not necessarily a bug fix. I'll defer to John, et al. on whether this should go in 0.98.x or go in a later release. It's a

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-08 Thread Ryan May
John Hunter wrote: On Mon, Dec 8, 2008 at 10:56 AM, Ryan May [EMAIL PROTECTED] wrote: My only other concern is whether this belongs in 0.98.x. This is a behavior change from 0.98.3, not necessarily a bug fix. I'll defer to John, et al. on whether this should go in 0.98.x or go in a later

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-01 Thread Fago, Matt - AES
I found bug number 1859027 and have appended the below to the bug report. When is the next release due and how likely is this to get fixed? I might have time myself to help in a week or so, but would appreciate some help if someone else has time too (who has looked at the source before...)

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-01 Thread Ryan May
Fago, Matt - AES wrote: I found bug number 1859027 and have appended the below to the bug report. When is the next release due and how likely is this to get fixed? I might have time myself to help in a week or so, but would appreciate some help if someone else has time too (who has

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-01 Thread Ryan May
Ryan May wrote: Fago, Matt - AES wrote: I found bug number 1859027 and have appended the below to the bug report. When is the next release due and how likely is this to get fixed? I might have time myself to help in a week or so, but would appreciate some help if someone else has time too

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-01 Thread Ryan May
Fago, Matt - AES wrote: I cannot really compute the example without the pad_to support in svn. Nevertheless, using something similar (nfft=128, noffset=64) gives similarly erroneous results. Did you add 'pad_to'? If so, thanks! Good to know. I recently (within the last month) did a bunch

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-01 Thread Andrew Straw
Ryan May wrote: Fago, Matt - AES wrote: I cannot really compute the example without the pad_to support in svn. Nevertheless, using something similar (nfft=128, noffset=64) gives similarly erroneous results. Did you add 'pad_to'? If so, thanks! Good to know. I recently (within the last

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-01 Thread John Hunter
On Mon, Dec 1, 2008 at 3:40 PM, Andrew Straw [EMAIL PROTECTED] wrote: I appreciate the work you're doing on this, and while I don't have any very strong opinions on the API questions you raise, I would request that you include in the docstrings information at least at the level of the above,

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-01 Thread Fago, Matt - AES
01, 2008 1:58 PM To: Fago, Matt - AES Cc: Matplotlib Users Subject: Re: [Matplotlib-users] Matplotlib PSD bug? Fago, Matt - AES wrote: I cannot really compute the example without the pad_to support in svn. Nevertheless, using something similar (nfft=128, noffset=64) gives similarly erroneous

[Matplotlib-users] Matplotlib PSD bug?

2008-11-25 Thread Fago, Matt - AES
[I'm not sure if this is best in 'devel' or 'users'] I'm trying to compute PSDs using matplotlib.mlab.psd and came across the PSD amplitudes thread from last year: http://sourceforge.net/mailarchive/message.php?msg_id=472101A6.9080206%40isla.hawaii.edu Using the latest version of psd on

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-11-25 Thread Ryan May
Fago, Matt - AES wrote: [I'm not sure if this is best in 'devel' or 'users'] I'm trying to compute PSDs using matplotlib.mlab.psd and came across the PSD amplitudes thread from last year: http://sourceforge.net/mailarchive/message.php?msg_id=472101A6.9080206%40isla.hawaii.edu