# integral-transforms **Repository Path**: mirrors_mljs/integral-transforms ## Basic Information - **Project Name**: integral-transforms - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-10-24 - **Last Updated**: 2026-01-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # integral-transforms [![NPM version][npm-image]][npm-url] [![build status][ci-image]][ci-url] [![Test coverage][codecov-image]][codecov-url] [![npm download][download-image]][download-url]

A tool for line broadening through integral transforms.

## Installation `$ npm i ml-integral-transforms` ## Usage ```js 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`: Vector 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](./LICENSE) [npm-image]: https://img.shields.io/npm/v/ml-integral-transforms.svg [npm-url]: https://www.npmjs.com/package/ml-integral-transforms [ci-image]: https://github.com/mljs/ml-integral-transforms/workflows/Node.js%20CI/badge.svg?branch=main [ci-url]: https://github.com/mljs/ml-integral-transforms/actions?query=workflow%3A%22Node.js+CI%22 [codecov-image]: https://img.shields.io/codecov/c/github/mljs/ml-integral-transforms.svg [codecov-url]: https://codecov.io/gh/mljs/ml-integral-transforms [download-image]: https://img.shields.io/npm/dm/ml-integral-transforms.svg [download-url]: https://www.npmjs.com/package/ml-integral-transforms