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/robust-product/test/test.js

17 lines
375 B

4 years ago
"use strict"
var robustProduct = require("../product.js")
var tape = require("tape")
function pow2(n) {
return Math.pow(2, n)
}
tape(function(t) {
for(var i=-20; i<=20; ++i)
for(var j=-20; j<=20; ++j) {
t.same(robustProduct([i], [j]), [i*j])
}
t.same(robustProduct([pow2(-50), pow2(50)], [pow2(-50), pow2(50)]), [pow2(-100), pow2(1), pow2(100)])
t.end()
})