Skip to content
Snippets Groups Projects
Commit 5b0718ea authored by Mark Woolrich's avatar Mark Woolrich
Browse files

*** empty log message ***

parent cbe1763d
No related branches found
No related tags found
No related merge requests found
......@@ -36,10 +36,12 @@ namespace FILM {
// compute r
Matrix I(sizeTS, sizeTS);
Identity(I);
r = (I-x*inv_xx*x.t())*y;
Matrix R = I-x*inv_xx*x.t();
r = R*y;
// compute sigma squareds
sigmaSquareds(ind) = (r.t()*r/sizeTS).AsScalar();
// sigmaSquareds(ind) = (r.t()*r/sizeTS).AsScalar();
sigmaSquareds(ind) = (r.t()*r).AsScalar()/R.Trace();
// set corrections
SetCorrection(inv_xx, ind);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment