StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
659 B
39 lines
659 B
4 years ago
|
zero-crossings
|
||
|
==============
|
||
|
Finds all zero crossings in a 1D ndarray assuming piecewise-linear interpolation.
|
||
|
|
||
|
# Example
|
||
|
|
||
|
```javascript
|
||
|
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
|