1.1.1 • Published 5 months ago

ml-signal-processing v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

signal-processing

NPM version build status Test coverage npm download

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

Installation

$ npm i 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

1.1.1

5 months ago

1.1.0

5 months ago

1.0.4

1 year ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.5.0

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.1

3 years ago