Skip to content

Commit

Permalink
Merge commit '8d64db745eb2ae8edacc27141e53f46348ac9eb6'
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoRianiUNIPR committed Mar 4, 2024
2 parents 069eeef + 8d64db7 commit 4c81bdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion toolbox/multivariate/mcd.m
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@
% Fraction of observations whose covariance determinant will be
% minimized. If a percentage alpha=1-h/n of units are trimmed by
% the mcd, it is 1-alpha.
alphacompto1 = h/n;
alphacompto1 = round(h/n,2);

if nargin<4 || isempty(nu) || nu == 0
% This is the standard case, applied when uncontaminated data
Expand Down
2 changes: 1 addition & 1 deletion toolbox/utilities_stat/msdcutoff.m
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@

%% Beginning of code

if nargin < 3 || isempty(nu)
if nargin < 3 || isempty(nu) || nu == 0
cutoff=chi2inv(conflev,v);
else
cutoff = (1 - betainv(conflev,v/2,nu/2))^(-1);
Expand Down

0 comments on commit 4c81bdd

Please sign in to comment.