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/point-in-big-polygon/example/example.js

22 lines
497 B

var preprocessPolygon = require("point-in-big-polygon")
var classifyPoint = preprocessPolygon([
[ [-10, -10], [-10, 10], [10, 10], [10, -10] ],
[ [-1, -1], [1, -1], [1, 1], [-1, 1] ]
])
var img = []
for(var y=-12; y<=12; y+=0.5) {
var row = []
for(var x=-12; x<=12; x+=0.5) {
var v = classifyPoint([x, y])
if(v < 0) {
row.push('-')
} else if(v === 0) {
row.push('o')
} else {
row.push('+')
}
}
img.push(row.join(''))
}
console.log(img.join('\n'))