An open API service indexing awesome lists of open source software.

https://github.com/mljs/fft


https://github.com/mljs/fft

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# ml-fft

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![David deps][david-image]][david-url]
[![npm download][download-image]][download-url]

fft library for the ml libraries.

The idea of this, another flavor of the FFT library, is to perform, Real and Complex matrix FFT and IFFT, by using only the 1D FFT algorithm.
The 1D FFT and IFFT was taken and adapted from this project: [https://github.com/wellflat/javascript-labs/tree/master/cv/fft]

## Installation

`$ npm install ml-fft`

### Import in node

```js
var lib = require("ml-fft");
var FFT = lib.FFT;
var FFTUtils = lib.FFTUtils
```

### 1D FFT and IFFT

```js
var nCols = 16;
FFT.init(nCols);
var re = new Array(nCols);
var im = new Array(nCols);

for(var i=0; i