Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ml-rolling-ball-baseline

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-rolling-ball-baseline

Rolling ball baseline correction

  • 2.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
879
increased by290.67%
Maintainers
1
Weekly downloads
 
Created
Source

ml-rolling-ball-baseline

NPM version build status npm download

Rolling ball baseline correction. The algorithm was initially described in [1].

1. Kneen, M. A.; Annegarn, H. J. Algorithm for Fitting XRF, SEM and PIXE X-Ray Spectra Backgrounds. Nuclear Instruments and Methods in Physics Research Section B: Beam Interactions with Materials and Atoms 1996, 109–110, 209–213.

2. Liland KH, Almøy T, Mevik B (2010). “Optimal Choice of Baseline Correction for Multivariate Calibration of Spectra.” Applied Spectroscopy, 64, 1007-1016.

Installation

$ npm i ml-rolling-ball-baseline

Usage

import { rollingBall } from 'ml-rolling-ball-baseline';

// spectrum is an array
const spectrum=[1, 2, 1, ...];

// you need to provide and array with the data and
// two numbers indicating the "size" of the balls,
// i.e., the maximization/minimization and the smoothing window.
const baseline = rollingBall(spectrum, 200, 400);

API Documentation

License

MIT

FAQs

Package last updated on 07 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc