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

ndfft

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

ndfft

n-dimensional fast Fourier transform for JavaScript

  • 0.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

ndfft

Complex n-dimensional radix-2 FFT codes for JavaScript. Derived from Paul Bourke's C FFT codes. This routine is not particularly optimized, but it should get the job done.

Usage/Install

To install:

npm install ndfft

And to use it

var ndfft = require("ndfft");

var re = [[1, 0], [0, 0]];
var im = [[0, 0], [0, 0]];

//Forward transform
ndfft(1, re, im);

//Inverse transform
ndfft(-1, re, im);

require("ndfft")(direction, real, imag)

Executes an n-place n-dimensional Fast Fourier transform.

  • direction: a number set to +/- 1, representing the direction of the fft.
  • real: The real part of the array. Each dimension must be a power of two.
  • imag: The imaginary part of the array. Must have same dimensions as x

The fourier transform is computed in place. No value is returned from this method.

Credits

(c) 1993 Paul Bourke. Public domain

JavaScript port by Mikola Lysenko (c) 2013.

Keywords

FAQs

Package last updated on 13 Feb 2013

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