slayer
Version:
JavaScript time series spike detection for Node.js; like the Octave findpeaks function.
18 lines (15 loc) • 487 B
JavaScript
;
/**
* average signed distance algorithm described as S3 in the following paper.
*
* Not yet complete.
*
* @param distance {Number} Number of elements to look around
* @param item {Number} Item value to compare against its neighbourhood.
* @param i {Number} Current index of `item` within `array`
* @param array {Array.<Number>}
* @returns {Number|null}
*/
/* istanbul ignore next */
module.exports = function averageSignedDistance(distance, item, i, array){
};