Skip to content

Commit

Permalink
Improved option msg in Sregeda
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoRianiUNIPR committed Dec 4, 2023
1 parent 5f8a5f3 commit 46250a9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions regression/Sregeda.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@
% to display or not messages on the screen.
% If msg==1 (default) messages are displayed
% on the screen about estimated time to compute the estimator
% and the warnings about
% and the proportion of singular elemental subsets, if this
% proportion exceeds 0.1.
% Note that the warnings about:
% 'MATLAB:rankDeficientMatrix', 'MATLAB:singularMatrix' and
% 'MATLAB:nearlySingularMatrix' are set to off
% 'MATLAB:nearlySingularMatrix' are always set to off
% else no message is displayed on the screen
% Example - 'msg',0
% Data Types - single | double
Expand Down Expand Up @@ -794,10 +796,12 @@
outliers=seq( abs(residuals)>norminv(conflev) );

if coder.target('MATLAB')
if msg==true
if singsub/nselected>0.1
disp('------------------------------')
disp(['Warning: Number of subsets without full rank equal to ' num2str(100*singsub/nselected) '%'])
end
end
end

[outCOV]=RobCov(X,residuals,superbestscale,'rhofunc',rhofunc,'rhofuncparam',rhofuncparam, ...
Expand Down

0 comments on commit 46250a9

Please sign in to comment.