0.0.0 • Published 4 years ago
integral-transforms v0.0.0
integral-transforms
Installation
$ npm i integral-transforms
Usage
import { getTransform } from 'integral-transforms';
const signal = [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.4, 0.3, 0.2, 0.1, 0];
const broadedSignal = getTransform(signal, { kernelLength: 7 });
// [0.04, 0.12, 0.24, 0.53, 0.80, 1, 0.80, 0.53, 0.24, 0.12,0.04]Arguments
array: Matrix containing the inputs.
Options
shape: Define the shape of the kernel (default: 'triangular').kernelLength: Set up the length of the kernel to perform the convolution (default: 7).
Shapes
| Shape | Status |
|---|---|
| Triangular | |
| Gaussian | |
| Lorentzian |
License
0.0.0
4 years ago