From 46250a920110d51a5a90e891c02d56fe4fe294da Mon Sep 17 00:00:00 2001 From: MarcoRianiUNIPR Date: Mon, 4 Dec 2023 16:14:38 +0100 Subject: [PATCH] Improved option msg in Sregeda --- regression/Sregeda.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/regression/Sregeda.m b/regression/Sregeda.m index 0bc373619..ec9601beb 100644 --- a/regression/Sregeda.m +++ b/regression/Sregeda.m @@ -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 @@ -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, ...