Skip to content
Prev 155195 / 398503 Next

Plotting the complex fft in 3D?

Hello Martin,

Zitat von Martin Maechler <maechler at stat.math.ethz.ch>:
[...]

"Yes, I'm coming from the EE world, but I also know the other terms.
The term "spectral analysis" is also used in EE, maybe not that often.
Also "frequency domain time-series analysis" is used in EE, but
maybe only at the university, later at the job, short terms
"spectral analysis" or "fft" are used. (But it may differ from country
to country.)


I tried "spectrum" now on my example data, and it looks quite different
to the result of fft().
It looks very close to what one gets as output from a spectrum analyzer
(measurement harware).
So it's quite nice to use this. :-)
Well, what do you mean with inconcistent?
And why is spectrum() better?

Do you talk about things like windowing for becoming more appropriate
results?

Even if the output from spectrum() looks more like what I know from
measurement hardware, it might not always be better.
Can yo explain, why better using this?
The FFT only creates coefficients for certain seperated
frequencies. It depends on number of samlpes how accurate the
result is. And if the samples aren't an integer multiple of the
frequency in the measured signal, this creates errors in the results.

Possibly this is, what you are talking about?

Why is spectrum() better? Would be nice to have an explanation,
on how it's results are created, so that I can understand,
when which kind of analysis is better.

For the non-EE analysis, why is there fft() used and not
spectrum()?

For what kind of analysis is what function better?
"MASS book"? Do you mean the documentation of the MASS package?

Well, so much packages.... R is very powerful and provides a lot of
things.

But where to start?

Any idea?  I started with some introductional papers and got a
good overview. But a more systematical approach might be better.

Can you recommend some things to read?
I also have seen that there is one german book about programming in R.
I will look at it in more detail, when the new edition will be published
(sept/oct).

But maybe you can recommend other readings as well?

Thanks,
      Oliver