diff --git a/matlab/marginal_density.m b/matlab/marginal_density.m index 489fb8cf61e5b05770886326bfc38b67a3bc2ccb..d6c1dc046d4221f5cf66e54b10c185bec5d459a3 100644 --- a/matlab/marginal_density.m +++ b/matlab/marginal_density.m @@ -69,7 +69,7 @@ parameter_names = bayestopt_.name; save([M_.dname filesep 'Output' filesep M_.fname '_mean.mat'],'xparam1','hh','parameter_names','SIGMA'); fprintf('Estimation::marginal density: I''m computing the posterior log marginal density (modified harmonic mean)... '); -logdetSIGMA = log(det(SIGMA)); +logdetSIGMA = sum(log(eig(SIGMA))); invSIGMA = hh; marginal = zeros(9,2); linee = 0;