Socket
Socket
Sign inDemoInstall

fftw

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fftw

fftw bindings for node.


Version published
Weekly downloads
6
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

FFTW for node.js

[Build Status] (https://travis-ci.org/apechimp/node-fftw)

The fastest fourier transform in the west for node.js

Installation

npm install

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

Keywords

FAQs

Package last updated on 10 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc