Skip to content

mike-zorn/node-fftw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FFTW for node.js

Linux Build Windows Build
Build Status Build status

The fastest fourier transform in the west for node.js

Installation

npm install fftw

Usage

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.

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

About

FFTW bindings for node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published