TP-traitement-audio-visuel/TP3_dams/max_vraisemblance.m
2023-06-22 20:47:16 +02:00

11 lines
301 B
Matlab

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