Added archive directory to put paper related scripts

This commit is contained in:
matlabbe
2021-03-09 17:08:42 -05:00
parent db43479e44
commit 800d087b07
45 changed files with 659 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
function LN = adjustLikelihood(L)
%ADJUSTLIKELIHOOD Adjust the likelihood with std dev and mean.
% LN = adjustLikelihood(L)
%
% L the likelihood (m,1)
% LN the likelihood normalized (m,1)
m = mean(L); % Calcul mean
s = std(L); % Calcul std dev
LN = zeros(size(L));
for i=1:length(L)
if L(i) > m + s
LN(i) = (L(i)-s)/m;
else
LN(i) = 1;
end
end