Changeset 6d9639b in tol
- Timestamp:
- May 12, 2010, 3:11:38 PM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- f1fd2aa
- Parents:
- 62815b1
- File:
-
- 1 edited
-
tol_pkg/BysVecLinReg/tools.tol (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol_pkg/BysVecLinReg/tools.tol
r62815b1 r6d9639b 2 2 ////////////////////////////////////////////////////////////////////////////// 3 3 // FILE : tools.tol 4 // PURPOSE: Defines Class BysVecLinReg::@Multivariate4 // PURPOSE: Defines generic functions used in BysVecLinReg 5 5 ////////////////////////////////////////////////////////////////////////////// 6 6 … … 30 30 ////////////////////////////////////////////////////////////////////////////// 31 31 { 32 MatDat(VMat2Triplet( vmatrix2vec(Triplet([[ [[i,j,1]] ]],r,c))),1,1)32 MatDat(VMat2Triplet(BysVecLinReg::vmatrix2vec(Triplet([[ [[i,j,1]] ]],r,c))),1,1) 33 33 }; 34 34 … … 72 72 VMatrix C2 = Constant(1,r,1) * (C $* C); 73 73 //Builds pivoting order of columns of diagonal of C*C' 74 Matrix p = ColumnPivots(VMat2Mat(C2));74 Matrix piv = ColumnPivots(VMat2Mat(C2)); 75 75 //Select p.1 as gaussian components of x as (n-r) last pivoted columns 76 Set p.1 = MatSet(Sub(p ,1,r+1,1,n-r))[1];76 Set p.1 = MatSet(Sub(piv,1,r+1,1,n-r))[1]; 77 77 //Select p.2 as dependent components of x as first r pivoted columns 78 Set p.2 = MatSet(Sub(p ,1,1, 1,r ))[1];78 Set p.2 = MatSet(Sub(piv,1,1, 1,r ))[1]; 79 79 //Draw e.1 as standard independent normal 80 80 VMatrix e.1 = Gaussian(n-r,1,0,1);
Note: See TracChangeset
for help on using the changeset viewer.
