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.