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.
18 lines
470 B
18 lines
470 B
module.exports = ldu
|
|
|
|
/**
|
|
* Returns L, D and U matrices (Lower triangular, Diagonal and Upper triangular) by factorizing the input matrix
|
|
*
|
|
* @alias mat2.ldu
|
|
* @param {mat2} L the lower triangular matrix
|
|
* @param {mat2} D the diagonal matrix
|
|
* @param {mat2} U the upper triangular matrix
|
|
* @param {mat2} a the input matrix to factorize
|
|
*/
|
|
function ldu(L, D, U, a) {
|
|
L[2] = a[2]/a[0]
|
|
U[0] = a[0]
|
|
U[1] = a[1]
|
|
U[3] = a[3] - L[2] * U[1]
|
|
return [L, D, U]
|
|
}
|
|
|