Solved

FFT code

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C++ Language error 28 311
Socket Programming (Unix) 8 159
How to Correctly derive class from CWinThread in MFC 4 115
Need some help with mailto 16 42
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…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
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 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.

732 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