Solved

FFT code

Posted on 2001-09-14
5
252 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
5 Comments
 
LVL 30

Expert Comment

by:Axter
Comment Utility
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 40 total points
Comment Utility
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
Comment Utility
Axter - I checked to make sure the writer closed the question you linked before posting.
0
 
LVL 1

Expert Comment

by:dspector
Comment Utility
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
Comment Utility
David,
My email address is: johncili@hotmail.com
Thank you in advance.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
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.

728 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now