Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kissfft

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kissfft

FFT for node using kissfft.

  • 0.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

kissfft

FFT for node using kissfft.

Usage:

var fft = require('kissfft').fft;

// Input is 1+0i 2+0i 3+0i 4+0i
var input = Float32Array([1, 0, 2, 0, 3, 0, 4, 0]);
var output = Float32Array(input.length);

// input and output must be exactly the same length, must both have an even
// number of elements, and must both be Float32Arrays.
fft(input, output, callback (err, result) {
  // result === output
});

If your input consists of real values only, kissfft supports a faster mode that will calculate half the bins (plus the Nyquist frequency).

var fft = require('kissfft').fft;

var input = Float32Array([1, 2, 3, 4]);
var output = Float32Array(input.length + 2);

// output must have exactly two elements more than input and input must
// have an even number of elements.
fft(input, output, callback (err, result) {
  // result === output
});

Inverse FFT is not currently supported because I didn't need it. Patches welcome.

Keywords

FAQs

Package last updated on 20 May 2015

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