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.
21 lines
321 B
21 lines
321 B
module.exports = identity
|
|
|
|
/**
|
|
* Set a mat3 to the identity matrix
|
|
*
|
|
* @alias mat3.identity
|
|
* @param {mat3} out the receiving matrix
|
|
* @returns {mat3} out
|
|
*/
|
|
function identity(out) {
|
|
out[0] = 1
|
|
out[1] = 0
|
|
out[2] = 0
|
|
out[3] = 0
|
|
out[4] = 1
|
|
out[5] = 0
|
|
out[6] = 0
|
|
out[7] = 0
|
|
out[8] = 1
|
|
return out
|
|
}
|
|
|