spectra-processing
Various method to process spectra. There are sorted in 4 categories:
- array : functions that apply on a 1D array
- xy : functions that apply on an object
{x: [], y:[]}
- xreim: functions that apply on an object
{x: [], re:[], im:[]}
- reim: functions that apply on an object
{re: [], im:[]}
There will be probably more categories related to 2D spectra
Installation
$ npm i ml-spectra-processing
Build the project and publish it on npm
npm install --global cheminfo-build
cheminfo-publish
Usage
const closest = require('ml-spectra-processing').arrayFindClosestIndex;
const {arrayFindClosestIndex} = require('ml-spectra-processing');
or using ES6 modules
import {arrayFindClosestIndex} from 'ml-spectra-processing';
import {arrayFindClosestIndex} from 'ml-spectra-processing/src/array/arrayFindClosestIndex';
License
MIT