Skip to content

Commit

Permalink
Fixed issue in ParadigmSpecCSP that would cause a crash if the traini…
Browse files Browse the repository at this point in the history
…ng set has only one trial in one of its classes.
  • Loading branch information
chkothe committed Aug 29, 2016
1 parent e287299 commit 1e25894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/paradigms/ParadigmSpecCSP.m
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@
for t = 1:size(s{c},1)
s{c}(t,k) = w'*F{c}(:,:,k,t)*w; end
end
mu_s{c} = mean(s{c});
var_s{c} = var(s{c});
mu_s{c} = mean(s{c},1);
var_s{c} = var(s{c},0,1);
end
% 10. update alpha{j} according to Eqs. (4) and (5)
for c=1:2
Expand Down

1 comment on commit 1e25894

@Objay99
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Paradigm SIFT always gives me "NaN and inf not allowed" whereas there are no such events.. I've tried it with 3 different dataset now..
Please, hep fix it

Please sign in to comment.