Skip to content

Commit

Permalink
Merge pull request #46 from LIMO-EEG-Toolbox/WLS
Browse files Browse the repository at this point in the history
better error message pcout
  • Loading branch information
Cyril Pernet authored Oct 1, 2020
2 parents 902ccf8 + f0f677e commit 8b7b5c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion limo_pcout.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@

[n,p] = size(x);
if n<p
error('Principal Component Projection cannot be computed, more observations than variables are needed')
error([ 'Principal Component Projection cannot be computed, more observations than variables are needed.' 10 ...
'When using WLS (weighted least square), you must have more trials than time samples. This is not the' 10 ...
'case for this dataset. Try reducing the number of time samples or use OLS (ordinary least square) instead.' ])
end

%% 1st Phase: Detect location outliers
Expand Down

0 comments on commit 8b7b5c8

Please sign in to comment.