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.
22 lines
376 B
22 lines
376 B
module.exports = frob
|
|
|
|
/**
|
|
* Returns Frobenius norm of a mat3
|
|
*
|
|
* @alias mat3.frob
|
|
* @param {mat3} a the matrix to calculate Frobenius norm of
|
|
* @returns {Number} Frobenius norm
|
|
*/
|
|
function frob(a) {
|
|
return Math.sqrt(
|
|
a[0]*a[0]
|
|
+ a[1]*a[1]
|
|
+ a[2]*a[2]
|
|
+ a[3]*a[3]
|
|
+ a[4]*a[4]
|
|
+ a[5]*a[5]
|
|
+ a[6]*a[6]
|
|
+ a[7]*a[7]
|
|
+ a[8]*a[8]
|
|
)
|
|
}
|
|
|