MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Engineering requests

On 2 Mrz., 13:49, "McHale, Paul" <Paul.McH... at> wrote:
> So, here are some problems we face, but don't have great answers for in Mathematica.

> 6. ListFFT[].  This is an unusual request.  99% of the data we engineers deal with is evenly spaced sample data.  Most of the FFT activity I have ever seen involves getting the FFT from a list of data and plotting Real[].  Simplified, I know.  Since most of our data is in the form {{t1, sample1},{t2, sample2},{t3, sample3}} the time information is embedded.  In fact, all information is available to perform an FFT.  Just saying it makes life easier.  Could offer options like Results->{Real, Imaginary, Both}

> Kind Regards,
> Paul

Hi Paul,
by plotting Real[ ] you certainly had plotting Re[ ] in mind which is
not fundamental different form Im[ ],
most of the FFT activity I have ever seen involves getting the FFT
from a list of data and plotting Abs[ ].

Could it be that you are lookoing for spectral amlitude (and or power)
analysis with correct frequency information  ?

the functions below take a 1D list of data samples as first parameter
and a second optional scalar parameter specifying the SamplingPeriod,
they return a spectrum as list of {frequency, amplitude} resp.
{frequency, power} pairs if a SamplingPeriod is specifyed.

FourierSpectrum[ ] first calculates the mathematical spectrum
containing positive as well as negative frequencies.
For real input data one can add the positive and the conjugate of the
negative frequncies to get a physical spectrum of positive only
By this method there is no special treatment neccesary to obtain the
correct DC as well as the correct max. frequency term.
Appears to be more physical than just litter the negative frequencies
and adjust the DC and max. frequency terms.

  Abs//If[SampligPeriod=!=False,{1/(2 SampligPeriod (Length@# -1))
Range[0,Length@#-1],#}//Transpose, #]&



  • Prev by Date: Re: How to use Save/Get for interpolation of unstructured data?
  • Next by Date: CUDAFunctionLoad problem
  • Previous by thread: Re: Engineering requests
  • Next by thread: Re: Engineering requests