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.
40 lines
1.1 KiB
40 lines
1.1 KiB
4 years ago
|
nextafter
|
||
|
=========
|
||
|
Returns the next floating point number after any given number in the direction of some other floating point number. (Like the [C standard library function](http://en.cppreference.com/w/cpp/numeric/math/nextafter)).
|
||
|
|
||
|
[](https://ci.testling.com/mikolalysenko/nextafter)
|
||
|
|
||
|
[](http://travis-ci.org/mikolalysenko/nextafter)
|
||
|
|
||
|
## Example
|
||
|
|
||
|
```javascript
|
||
|
var nextafter = require("nextafter")
|
||
|
|
||
|
var x = 0.1
|
||
|
console.log("The number", x, "is between", nextafter(x, -Infinity), "and", nextafter(x, Infinity))
|
||
|
```
|
||
|
|
||
|
Output:
|
||
|
|
||
|
```
|
||
|
The number 0.1 is between 0.09999999999999999 and 0.10000000000000002
|
||
|
```
|
||
|
|
||
|
## Install
|
||
|
|
||
|
```
|
||
|
npm install nextafter
|
||
|
```
|
||
|
|
||
|
## API
|
||
|
|
||
|
#### `require("nextafter")(from, to)`
|
||
|
Returns the floating point number closest to `from` in the direction on of `to`
|
||
|
|
||
|
* If `from === to`, then returns `from`
|
||
|
* If `from < to`, then returns next representable float after `from`
|
||
|
* If `from > to`, then returns the floating point nubmer immediately before `from`
|
||
|
|
||
|
## Credits
|
||
|
(c) 2014 Mikola Lysenko. MIT License
|