By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,121 Members | 1,064 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,121 IT Pros & Developers. It's quick & easy.

DFT c++

P: n/a
I need a DFT C++ code that can find amplitude and phase of a waveform.
I have searched it in the web but there are only complicated code. I
need a very simple DFT code in C++.

Dec 28 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Geky wrote:
I need a DFT C++ code that can find amplitude and phase of a waveform.
I have searched it in the web but there are only complicated code. I
need a very simple DFT code in C++.
Yours is not a C++ *language* question, which is the topic of this
group (see
http://www.parashift.com/c++-faq-lit....html#faq-5.9). You
should ask on comp.sources.wanted, comp.dsp, or similar. BTW, you
probably could do with plain old C code since there's not much to the
DFT (at least insofar as you have stated your requirements) that lends
itself to C++'s differing capabilities. Also, unless this is a purely
educational exercise, it is not unlikely that you actually want code
for the FFT (fast Fourier transform), which is what is almost always
used in practice -- in which case, you should look at fftw.org.

Cheers! --M

Dec 28 '06 #2

P: n/a
Geky wrote:
I need a DFT C++ code that can find amplitude and phase of a waveform.
I have searched it in the web but there are only complicated code.
I need a very simple DFT code in C++.
Take a look at
The Scalar, Vector, Matrix and Tensor Library (SVMTL) Page
http://www.netwood.net/~edwin/svmtl/

Look at the example in svmtl/examples/signal.cc

Also, take a look at the Object Oriented Numerics Page

http://www.oonumerics.org/oon/

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Dec 28 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.