Hi,

I know about the difference between pylab.psd and mlab.psd, but in theory
the only difference between the returned values is:

pylab.psd = 10*log10(mlab.psd)

Except this is not true, there is noticeable difference:

pylab.psd = 23.4962 (all these pylab.psd values are read from graph)
10*log10(mlab.psd) = 17.2852

pylab.psd = 18.8973
10*log10(mlab.psd) = 12.8149

pylab.psd = 4.92
10*log10(mlab.psd) = -2.247

These all look suspiciously out by around 2pi, although by no means exact.
Any ideas?

code is:
pylab.psd(input, NFFT=512, Fs=sampleRate, window=blackman(512)) #graph
x,y = mlab.psd(input, NFFT=512, Fs=sampleRate, window=blackman(512)) #look
at x


-- 
View this message in context: 
http://old.nabble.com/PSD-amplitude-disparity-tp27754632p27754632.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to