Re: [R] Frequency and Phase Spectrograms

From: Dieter Menne <dieter.menne_at_menne-biomed.de>
Date: Thu, 6 Dec 2007 18:34:19 +0000 (UTC)

Todd Remund <tkremund98 <at> hotmail.com> writes:

> I know that there is a function, (spectro3D), that produces the Power
Spectrogram. Are there R functions
> that produce the Frequency Spectrogram and the Phase Spectrogram? Thank you
for your time.

fft in stats gives you all you need, possibly combined with some time window in package signal, which also has some higher level stuff. Do you really want to interpret the "frequency spectrum" (whatever it is) with real, imaginary part and signs?

The docs of spectro3D gives makes me cringe:

>>Following Heisenberg uncertainty principle, the short-term Fourier transform cannot be precised in both time and frequency. >>

I know that's written in quite a few books, but that upside-down thinking has been a source of confusion for generations of students and professors (of biology, to say).

Dieter



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 06 Dec 2007 - 18:55:50 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 06 Dec 2007 - 19:30:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.