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.
44 lines
480 B
44 lines
480 B
4 years ago
|
signum
|
||
|
======
|
||
|
Returns the sign of a floating point number
|
||
|
|
||
|
# Example
|
||
|
|
||
|
```javascript
|
||
|
var sgn = require("signum")
|
||
|
|
||
|
console.log(sgn(-0.00001))
|
||
|
console.log(sng(0))
|
||
|
console.log(sng(Infinity))
|
||
|
```
|
||
|
|
||
|
Output:
|
||
|
|
||
|
```javascript
|
||
|
-1
|
||
|
0
|
||
|
1
|
||
|
```
|
||
|
|
||
|
# Install
|
||
|
|
||
|
```
|
||
|
npm install signum
|
||
|
```
|
||
|
|
||
|
# API
|
||
|
|
||
|
### `require("signum")(x)`
|
||
|
Returns the sign of `x`
|
||
|
|
||
|
* `x` is a number
|
||
|
|
||
|
**Returns** One of the following values
|
||
|
|
||
|
* `-1` if `x<0`
|
||
|
* `1` if `x>0`
|
||
|
* `0` otherwise
|
||
|
|
||
|
# Credits
|
||
|
(c) 2014 Mikola Lysenko. MIT License
|