TP-traitement-audio-visuel/TP3_dams/max_vraisemblance.m

11 lines
301 B
Mathematica
Raw Normal View History

2023-06-22 18:47:16 +00:00
function parametres_MV = max_vraisemblance(D_app,parametres_test)
n = length(parametres_test);
result_r = zeros(1, n);
for i = 1:n
result_r(i) = sum(calcul_r(D_app,parametres_test(i,:)).^2);
end
[~,index] = min(result_r);
parametres_MV = parametres_test(index,:);
end