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.
24 lines
577 B
24 lines
577 B
"use strict"
|
|
|
|
//Load modules
|
|
var surfaceNets = require("../surfacenets.js")
|
|
var ndarray = require("ndarray")
|
|
var fill = require("ndarray-fill")
|
|
|
|
//Initialize array
|
|
var array = ndarray(new Float32Array(32*32*32), [32,32,32])
|
|
fill(array, function(i,j,k) {
|
|
return Math.pow(i-16,2) + Math.pow(j-16,2) + Math.pow(k-16,2)
|
|
})
|
|
|
|
//Generate surface!
|
|
var complex = surfaceNets(array, 100)
|
|
for(var i=0; i<10; ++i) {
|
|
complex = surfaceNets(array, 100)
|
|
}
|
|
|
|
console.time("surface-nets 3d")
|
|
for(var i=0; i<1000; ++i) {
|
|
complex = surfaceNets(array, 100)
|
|
}
|
|
console.timeEnd("surface-nets 3d") |