package
fftw bindings for node.
npm install fftw@0.0.0
GitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 4 packages.
470.2 kB
Includes dependencies.
2 direct · 1 outdated
^1.2.0
2.30.0
^1.2.1
1.5.0
Latest published Nov 10, 2014
latest
Registry package owners.
apechimp
apeherder@gmail.com
[] (https://travis-ci.org/apechimp/node-fftw)
The fastest fourier transform in the west for node.js
npm install
fftw.dft_1d([1, 1, 1, 1], function(err, result) { result.forEach(function(complex) { console.log(complex.toString()); }); });
yields 4 + 0i 0 + 0i 0 + 0i 0 + 0i. Note that each complex object has the accessors, real and imag exposed for accessing the real and imaginary parts, respectively. Complex input may also be used.
4 + 0i 0 + 0i 0 + 0i 0 + 0i
real
imag
var input = [ { real: 1, imag: 1 }, { real: 1, imag: 1 }, { real: 1, imag: 1 }, { real: 1, imag: 1 } ]; fftw.dft_1d(input, function(err, result) { result.forEach(function(complex) { console.log(complex.toString()); }); });
The following transforms are currently exposed.
dft_1d
idft_1d