?
Solved

FFT code

Posted on 2001-09-14
5
Medium Priority
?
260 Views
Last Modified: 2010-04-02
Does any friend can supply C/C++ original code (or download site) for FFT processing of a time-series data to get frequency-spectrum and time-frequency-spectrum??
0
Comment
Question by:Johncili
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 30

Expert Comment

by:Axter
ID: 6483529
Hi friend,
Can you please award the points to your previously posted question.
http://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20176584

Thanks friend :-)
0
 
LVL 3

Accepted Solution

by:
jtm111 earned 160 total points
ID: 6483838
Look here for several options:

http://www.mathtools.net/C++/FFT/

I use the code from the classic algorithm text: Numerical Recipes in C, authors Press, et. al. (soon to be published for C++). Numerical Recipes with source code disk can be purchased at most bookstores virtual or brick/mortar.
0
 
LVL 3

Expert Comment

by:jtm111
ID: 6483848
Axter - I checked to make sure the writer closed the question you linked before posting.
0
 
LVL 1

Expert Comment

by:dspector
ID: 6484763
Johncili, I wrote complete code for a CFourier class that uses FFT. Also available: bar chart display, including phase indication, and simple automatic apodization to zero crossings. Not available: endpoint attenuation envelopes.

My design is different from others in that the number of data points need not be a power of two. I scale the given data in the time domain so that the result length is a power of two.

(I also have code for a realtime Fourier calculation and display; it uses the slow algorithm, not FFT. With a realtime Fourier display, you see the frequency domain for a moving window of time domain data, refreshed with each new acquired data point.)

Anyone can send me your email address and I will send you the code by email.

Since it will take me time to extract the relevant code from my much larger app, I reserve the possibility that there will be a delay in sending you the code.

David
0
 

Author Comment

by:Johncili
ID: 6485663
David,
My email address is: johncili@hotmail.com
Thank you in advance.
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question