validate-robust-sequence
v1.0.0
Published
Tests if a sequence of floats is a robust non-overlapping increasing sequence
Downloads
68
Maintainers
Readme
validate-robust-sequence
Tests if an array is an increasing non-overlapping sequence
Example
var testSequence = require("validate-robust-sequence")
console.log(testSequence([1e-16, -1]), [0.5, 1.5])
Output:
true false
Install
npm install validate-robust-sequence
API
require("validate-robust-sequence")(seq)
Tests if a sequence of numbers is an increasing non-overlapping sequence
seq
is an array of floats
Returns true
if the sequence is a robust sequence, false
otherwise
Credits
(c) 2014 Mikola Lysenko. MIT License