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.
64 lines
1.2 KiB
64 lines
1.2 KiB
"use strict"
|
|
|
|
var tape = require("tape")
|
|
var compare = require("./util/normalize").compare
|
|
var triangulate = require("../triangulate")
|
|
|
|
tape("delaunay-2d", function(t) {
|
|
var points = [
|
|
[0,0,0],
|
|
[0,0,1],
|
|
[0,1,0],
|
|
[0,1,1],
|
|
[1,0,0],
|
|
[1,0,1],
|
|
[1,1,0],
|
|
[1,1,1],
|
|
[0.5,0.5,0.5]
|
|
]
|
|
|
|
compare(t, triangulate(points), [
|
|
[ 8, 2, 4, 0 ],
|
|
[ 8, 1, 0, 2 ],
|
|
[ 8, 4, 0, 1 ],
|
|
[ 8, 4, 6, 2 ],
|
|
[ 8, 1, 4, 5 ],
|
|
[ 8, 5, 4, 6 ],
|
|
[ 8, 3, 5, 1 ],
|
|
[ 8, 2, 1, 3 ],
|
|
[ 8, 2, 3, 6 ],
|
|
[ 8, 7, 6, 5 ],
|
|
[ 8, 3, 7, 6 ],
|
|
[ 8, 3, 5, 7 ]
|
|
], "simple 3d")
|
|
|
|
compare(t, triangulate(points, true), [
|
|
[ 8, 2, 4, 0 ],
|
|
[ 8, 1, 0, 2 ],
|
|
[ 8, 4, 0, 1 ],
|
|
[ 8, 4, 6, 2 ],
|
|
[ 8, 1, 4, 5 ],
|
|
[ 8, 5, 4, 6 ],
|
|
[ 8, 3, 5, 1 ],
|
|
[ 8, 2, 1, 3 ],
|
|
[ 8, 2, 3, 6 ],
|
|
[ 8, 7, 6, 5 ],
|
|
[ 8, 3, 7, 6 ],
|
|
[ 8, 3, 5, 7 ],
|
|
|
|
[-1, 4, 2, 0 ],
|
|
[-1, 0, 1, 2 ],
|
|
[-1, 0, 4, 1 ],
|
|
[-1, 4, 6, 2 ],
|
|
[-1, 4, 1, 5 ],
|
|
[-1, 4, 5, 6 ],
|
|
[-1, 5, 3, 1 ],
|
|
[-1, 1, 2, 3 ],
|
|
[-1, 3, 2, 6 ],
|
|
[-1, 6, 7, 5 ],
|
|
[-1, 7, 3, 6 ],
|
|
[-1, 5, 3, 7 ]
|
|
], "3d + point at infinity")
|
|
|
|
t.end()
|
|
}) |