JSPM

  • Created
  • Published
  • Downloads 51929
  • Score
    100M100P100Q168155F
  • License MIT

Various method to process spectra

Package Exports

  • ml-spectra-processing

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ml-spectra-processing) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

spectra-processing

NPM version build status Test coverage npm download

Various functions to process spectra. Those are pure functions.

They are sorted in various categories:

  • x: functions that apply on a 1D array
  • xy: functions that apply on an object {x: [], y:[]}
  • xyObject: functions that apply on an array of point [{x,y}]
  • xreim: functions that apply on an object {x: [], re:[], im:[]}
  • reim: functions that apply on an object {re: [], im:[]}
  • zones: functions that apply on an array of zone [{from,to}]

The name of the functions starts with the first argument on which they apply.

Installation

$ npm i ml-spectra-processing

Build the project and publish it on npm

npm install --global cheminfo-build cheminfo-publish

Usage

import  { xAdd } from 'ml-spectra-processing';

let array = [1,2,3];
let result = xAdd(array, 5);
console.log(result);

API Documentation

License

MIT