🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

validate-robust-sequence

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

validate-robust-sequence

Tests if a sequence of floats is a robust non-overlapping increasing sequence

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

robust

FAQs

Package last updated on 28 Apr 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts