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.
24 lines
496 B
24 lines
496 B
|
|
module.exports = function newArray(start, end) {
|
|
var n0 = typeof start === 'number',
|
|
n1 = typeof end === 'number'
|
|
|
|
if (n0 && !n1) {
|
|
end = start
|
|
start = 0
|
|
} else if (!n0 && !n1) {
|
|
start = 0
|
|
end = 0
|
|
}
|
|
|
|
start = start|0
|
|
end = end|0
|
|
var len = end-start
|
|
if (len<0)
|
|
throw new Error('array length must be positive')
|
|
|
|
var a = new Array(len)
|
|
for (var i=0, c=start; i<len; i++, c++)
|
|
a[i] = c
|
|
return a
|
|
} |