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/cell-orientation/orientation.js

17 lines
265 B

'use strict'
module.exports = orientation
function orientation(s) {
var p = 1
for(var i=1; i<s.length; ++i) {
for(var j=0; j<i; ++j) {
if(s[i] < s[j]) {
p = -p
} else if(s[j] === s[i]) {
return 0
}
}
}
return p
}