Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zero-crossings

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zero-crossings

Finds all zero crossings in a 1D ndarray

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

zero-crossings

Finds all zero crossings in a 1D ndarray assuming piecewise-linear interpolation.

Example

var ndarray = require("ndarray")
var zc = require("zero-crossings")

var array = ndarray([1, -1, 0, 10, 3, -1])

console.log(zc(array))

Output:

[ 0.5, 2, 4.75 ]

Install

npm install zero-crossings

API

require("zero-crossings")(array[,level])

Finds all zero crossings in the 1D ndarray array

  • array is a 1D ndarray
  • level is an optional parameter which indicates the crossings

Returns A list of all zero crossings in array

Credits

(c) 2014 Mikola Lysenko. MIT License

Keywords

FAQs

Package last updated on 07 May 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc