Skip to content

Commit

Permalink
problems if cov does not have full rank
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephanie committed Jul 20, 2016
1 parent 34de915 commit a1c7bc6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion processing/utils/score_medianvar.m
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@

function score = score_medianvar(dat,W,~)
%SCORE_MEDIANVAR - Median variance of projected components as score

nChans = size(dat.x,2);

if size(W,2)<nChans
nChans=size(W,2);
end

fv = proc_linearDerivation(dat,W);
fv = proc_variance(fv);
score = zeros(nChans,1);
Expand Down

0 comments on commit a1c7bc6

Please sign in to comment.