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.
23 lines
383 B
23 lines
383 B
"use strict"
|
|
|
|
module.exports = convexHull1d
|
|
|
|
function convexHull1d(points) {
|
|
var lo = 0
|
|
var hi = 0
|
|
for(var i=1; i<points.length; ++i) {
|
|
if(points[i][0] < points[lo][0]) {
|
|
lo = i
|
|
}
|
|
if(points[i][0] > points[hi][0]) {
|
|
hi = i
|
|
}
|
|
}
|
|
if(lo < hi) {
|
|
return [[lo], [hi]]
|
|
} else if(lo > hi) {
|
|
return [[hi], [lo]]
|
|
} else {
|
|
return [[lo]]
|
|
}
|
|
} |