JSPM

  • Created
  • Published
  • Downloads 3246
  • Score
    100M100P100Q141060F
  • License MIT

Package Exports

  • ml-peak-shape-generator

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-peak-shape-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ml-peak-shape-generator

NPM version build status npm download

.

Installation

$ npm i ml-peak-shape-generator

Usage

import { gaussian, lorentzian, pseudoVoigt} from 'ml-peak-shape-generator';

// It's possible to specify the windows size with factor option
const gaussianVector = gaussian({factor: 3.5, sd: 500});
// or fix the number of points as Full Width at Half Maximum
const gaussianVector2 = gaussian({factor: 3.5, fwhm: 500});

// It's possible to specify the windows size with factor option
const lorenzianVector = loretzian({factor: 5, fwhm: 500});

// It's possible to specify the windows size with factor option
const pseudoVoigtVector = pseudoVoigt({{factor: 5, fwhm: 500}});
import { getShape, GAUSSIAN, LORENTZIAN, PSEUDO_VOIGT} from 'ml-peak-shape-generator';

// If you want to dynamically select a shape you can use the `getShape` method.
const shape = getShape(LORENTZIAN, {factor: 3.5, sd: 500});

API Documentation

License

MIT