0.2.0 • Published 5 years ago

@joe_six/duarte-watanabe-peak-detection v0.2.0

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

Detection of peaks in data

Javascript port of an original python function for the detection of peaks in value arrays. For an understanding of parameters and what this package really does please checkt this orginal documentation at:

I use it find peaks in my IMS data (more on this another time):

vosc.png -- IMAGES ARE BROKEN ON NPMJS! :( See github repo for full display..

Install

$ npm install "@joe_six/duarte-watanabe-peak-detection"

Usage

const detect_peaks = require("@joe_six/duarte-watanabe-peak-detection")

let x = [0, 1, 0, 2, 0, 3, 0, 2, 0, 1, 0]
// set minimum peak distance = 2
var peaks = detect_peaks(x, {mpd: 2})

Notice

The implementation can be found in github:

This is a 0.1.something release. NOT Optimized, briefly tested, and full of debug code artifacts. But it seems to be working already, for me at least. ymmv,

have fun

0.2.0

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago