fir-filter
v0.0.3
Published
An implementation of Finite impulse response filter algorithm
Downloads
1
Readme
fir-filter
An Implementation of Finite Impulse Response filter algorithm, this implementation is the re-written of https://sestevenson.wordpress.com/implementation-of-fir-filtering-in-c-part-1/.
Installation
npm i fir-filter
Quick Start
import FirFilter from 'fir-filter';
const firFilter = new FirFilter([-0.1, 0.2, 0.1]);
// filter a serials
firFilter.filter([1]);
firFilter.filter([2]);
firFilter.filter([0.5, 0.3]);
// filter another serials
firFilter.reset();
firFilter.filter([5, 4, 2, 8]);
Development
# test
npm run test:watch
# build
npm run build