Solved

FFT code

Posted on 2001-09-14
5
256 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 40 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

740 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