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.
 
 
 
 
StackGenVis/frontend/node_modules/to-float32/test.js

11 lines
372 B

'use strict'
let {float32, fract32} = require('./')
let a = require('assert')
let data = [0, 0.1, 0.2, 0.5, 1, 1.5]
a.deepEqual(float32(data), new Float32Array(data))
a.deepEqual(fract32(data), [ 0, -1.4901161415892261e-9, -2.9802322831784522e-9, 0, 0, 0 ])
a.deepEqual(float32(.1), 0.10000000149011612);
a.deepEqual(fract32([.1]), [-1.4901161415892261e-9])