Home > . > prt_remove_confounds.m

prt_remove_confounds

PURPOSE ^

[Kr, R] = prt_remove_confounds(K,C)

SYNOPSIS ^

function [Kr, R] = prt_remove_confounds(K,C)

DESCRIPTION ^

 [Kr, R] = prt_remove_confounds(K,C)

 Function to remove confounds from kernel.
__________________________________________________________________________
 Copyright (C) 2011 Machine Learning & Neuroimaging Laboratory

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [Kr, R] = prt_remove_confounds(K,C)
0002 
0003 % [Kr, R] = prt_remove_confounds(K,C)
0004 %
0005 % Function to remove confounds from kernel.
0006 %__________________________________________________________________________
0007 % Copyright (C) 2011 Machine Learning & Neuroimaging Laboratory
0008 
0009 % Written by A. Marquand
0010 % $Id$
0011 
0012 
0013 n  = size(K,1);
0014 R  = eye(n)-C*pinv(C); %R=eye(n)-C*inv(C'*C)*C'
0015 Kr = R'*K*R;
0016 
0017 return

Generated on Tue 10-Feb-2015 18:16:33 by m2html © 2005