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.
21 lines
615 B
21 lines
615 B
"use strict"
|
|
|
|
var inSphere = require("robust-in-sphere")
|
|
var orient = require("robust-orientation")
|
|
|
|
module.exports = isDelaunay
|
|
|
|
function isDelaunay(t, cells, points) {
|
|
for(var i=0; i<cells.length; ++i) {
|
|
var cell = cells[i]
|
|
var tuple = new Array(cell.length+1)
|
|
for(var j=0; j<cell.length; ++j) {
|
|
tuple[j] = points[cell[j]]
|
|
}
|
|
for(var j=0; j<points.length; ++j) {
|
|
tuple[cell.length] = points[j]
|
|
t.ok(inSphere.apply(void 0, tuple) >= 0, "check in sphere: " + cell + " - " + j)
|
|
t.ok(orient.apply(void 0, tuple.slice(0, cell.length)) >= 0, "check orientation")
|
|
}
|
|
}
|
|
} |