Changeset 14855c0 in tol
- Timestamp:
- May 13, 2010, 7:18:59 AM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 9421997
- Parents:
- 97a3b1b
- File:
-
- 1 edited
-
tol_pkg/BysVecLinReg/test/test_0003/test.tol (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol_pkg/BysVecLinReg/test/test_0003/test.tol
r97a3b1b r14855c0 43 43 44 44 VMatrix avg = Tra(Constant(1,sampleLength,1/sampleLength)*mcmc); 45 VMatrix vec.A = BysVecLinReg::vmatrix2vec(45 VMatrix vec.A_ = BysVecLinReg::vmatrix2vec( 46 46 SubRow(avg,Range(1,MV::_.m * MV::_.d,1))); 47 VMatrix vec.V = BysVecLinReg::vmatrix2vec(47 VMatrix vec.V_ = BysVecLinReg::vmatrix2vec( 48 48 SubRow(avg,Range(MV::_.m * MV::_.d+1,VRows(avg),1))); 49 49 50 VMatrix A_ = BysVecLinReg::vec2vmatrix(vec.A,MV::_.A); 51 VMatrix V_ = BysVecLinReg::vec2vmatrix(vec.V,MV::_.V); 50 VMatrix A_ = BysVecLinReg::vec2vmatrix(vec.A_,MV::_.A); 51 VMatrix V_ = BysVecLinReg::vec2vmatrix(vec.V_,MV::_.V); 52 //Instant residuals correlation 53 VMatrix V.COR_ = Mat2VMat(NormDiag(VMat2Mat(V_))); 54 52 55 VMatrix E_ = Y - A_*X; 53 56 VMatrix E_t = Tra(E_); 54 57 VMatrix E01_ = CholeskiSolve(V.L,E_,"PtLLtP"); 58 59 VMatrix S2_ = MMtSqr(E_); 60 VMatrix S2.COR_ = Mat2VMat(NormDiag(VMat2Mat(S2_))); 61 62 VMatrix cmpA = BysVecLinReg::vmatrix2vec(A) | 63 BysVecLinReg::vmatrix2vec(A_); 64 VMatrix cmpV = BysVecLinReg::vmatrix2vec(V) | 65 BysVecLinReg::vmatrix2vec(V_); 55 66 VMatrix cmpE = BysVecLinReg::vmatrix2vec(E) | 56 67 BysVecLinReg::vmatrix2vec(E_); … … 60 71 Real stdErr = VMatAvr(E01 ^2); 61 72 Real stdErr_ = VMatAvr(E01_^2); 73 Real quality.adjust = Min(1,Exp((stdErr-stdErr_)*N*d)); 62 74 63 Real quality.adjust = Min(1,Exp((stdErr-stdErr_)*N*d));64 75 65 76 VMatrix C.dist = C*vec.A - c;
Note: See TracChangeset
for help on using the changeset viewer.
