ml-integral-transforms
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

integral-transforms

NPM version build status Test coverage npm download

A tool for line broadening through integral transforms.

Installation

$ npm i ml-integral-transforms

Usage

import { integralTransform } from 'integral-transform';

const signal = [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.4, 0.3, 0.2, 0.1, 0];

const broadedSignal = integralTransform(signal, { kernelWidth: 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').
  • kernelWidth: Set up the length of the kernel to perform the convolution (default: 7).

Shapes

  • Triangular
  • Gaussian
  • Lorentzian

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i ml-integral-transforms

Weekly Downloads

3

Version

0.0.1

License

MIT

Unpacked Size

12.5 kB

Total Files

21

Last publish

Collaborators

  • mljs-bot