ml-signal-processing

2.0.0 • Public • Published

ml-signal-processing

NPM version npm download test coverage license

Process data in the form of {x:[], y:[]}.

Installation

npm install ml-signal-processing

Usage

import { filterXY } from 'ml-signal-processing';

const data = {
  x: [1, 2, 3, 4, 5, 6, 7, 8, 9],
  y: [1, 2, 3, 4, 5, 4, 3, 2, 1],
};

const filters = [
  { name: 'centerMedian' },
  { name: 'fromTo', options: { from: 2, to: 8 } },
];

const result = filterXY(data, filters);
/* result is
{
  x: Float64Array.from([2, 3, 4, 5, 6, 7, 8]),
  y: Float64Array.from([-1, 0, 1, 2, 1, 0, -1]),
}
*/

License

MIT

/ml-signal-processing/

    Package Sidebar

    Install

    npm i ml-signal-processing

    Weekly Downloads

    146

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    111 kB

    Total Files

    189

    Last publish

    Collaborators

    • mljs-bot