Skip to content
Snippets Groups Projects
Commit 87fbe0df authored by Christian Beckmann's avatar Christian Beckmann
Browse files

*** empty log message ***

parent 06b23c3b
No related branches found
No related tags found
No related merge requests found
...@@ -310,10 +310,12 @@ namespace Melodic{ ...@@ -310,10 +310,12 @@ namespace Melodic{
newWM=(newWM*whiteMatrix); newWM=(newWM*whiteMatrix);
} }
else{ else{
if(opts.debug.value())
message(" --mod_pca ");
Matrix tmp1, tmp2; Matrix tmp1, tmp2;
tmp1 = whiteMatrix * alldat; tmp1 = whiteMatrix * alldat;
tmp1 = remmean(tmp1,2) * tmpData.t(); tmp1 = remmean(tmp1,2) * tmpData.t();
tmp2 = pinv(tmp1); tmp2 = pinv(tmp1.t()).t();
std_pca(tmp1 * tmpData, RXweight, Corr, pcaE, pcaD); std_pca(tmp1 * tmpData, RXweight, Corr, pcaE, pcaD);
calc_white(pcaE, pcaD, order, newWM, newDWM); calc_white(pcaE, pcaD, order, newWM, newDWM);
newDWM=(tmp2*newDWM); newDWM=(tmp2*newDWM);
......
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