zero-crossings

WebJar for zero-crossings

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

zero-crossings
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

zero-crossings
WebJar for zero-crossings
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/mikolalysenko/zero-crossings

Download zero-crossings

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/zero-crossings/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>zero-crossings</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/zero-crossings/
implementation 'org.webjars.npm:zero-crossings:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/zero-crossings/
implementation ("org.webjars.npm:zero-crossings:1.0.1")
'org.webjars.npm:zero-crossings:jar:1.0.1'
<dependency org="org.webjars.npm" name="zero-crossings" rev="1.0.1">
  <artifact name="zero-crossings" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='zero-crossings', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "zero-crossings" % "1.0.1"
[org.webjars.npm/zero-crossings "1.0.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : cwise-compiler jar [1.0.0,2)

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.0.1