Forum: Ruby FFT how to choose?

5e76ff1d624de8a6d48b4828a2241903?d=identicon&s=25 gotostereo .. (gotostereo_)
on 2013-09-12 09:31
Tell me what to choose a library for the fast Fourier transform? Found
FFTW but it has not been updated for 4 years. Subject to what is an
alternative?. I am interested in the transformation of 1D, forward and
reverse. On the official FFTW website examples  by c++ programming
language :(
14b5582046b4e7b24ab69b7886a35868?d=identicon&s=25 Joel Pearson (virtuoso)
on 2013-09-12 09:46
Why do you need a more recent version? I had a quick look, and the only
"recent" changes I saw within FFTW were updates to the license. Perhaps
it works fine, so doesn't need updates. Have you tried it?
5e76ff1d624de8a6d48b4828a2241903?d=identicon&s=25 gotostereo .. (gotostereo_)
on 2013-09-12 09:57
Be sure to try, the only thing I do not understand the syntax for Ruby.
Example of code that I need on the official site FFTW.

  #include <fftw3.h>
     ...
     {
         fftw_complex *in, *out;
         fftw_plan p;
         ...
         in = (fftw_complex*) fftw_malloc(sizeof(fftw_complex) * N);
         out = (fftw_complex*) fftw_malloc(sizeof(fftw_complex) * N);
         p = fftw_plan_dft_1d(N, in, out, FFTW_FORWARD, FFTW_ESTIMATE);
         ...
         fftw_execute(p); /* repeat as needed */
         ...
         fftw_destroy_plan(p);
         fftw_free(in); fftw_free(out);
     }

How would it look to Ruby?.
14b5582046b4e7b24ab69b7886a35868?d=identicon&s=25 Joel Pearson (virtuoso)
on 2013-09-12 13:20
There are a few examples in Ruby of using FFTW3 here:
http://ruby.gfd-dennou.org/products/ruby-fftw3/doc...
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.