1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
| function [EER,DCF_opt,ThresEER]=Eval_Footstep_Det3(true_scores,impostor_scores,color)
%------------------------------
%load speaker detection output scores
%load true_scores
%load impostor_scores
%------------------------------
%initialize the DCF parameters
Set_DCF (10, 1, 0.01);
%------------------------------
%compute Pmiss and Pfa from experimental detection output scores
[P_miss,P_fa] = Compute_DET (true_scores, impostor_scores);
[EER,posmin]=min(abs(P_miss-P_fa)+P_fa);
EER=min(abs(P_miss-P_fa)+P_fa)*100;
ScoresTab=sort([true_scores; impostor_scores]);
ThresEER=ScoresTab(posmin);
%------------------------------
%plot results
% Set tic marks
Pmiss_min = 0.01;
Pmiss_max = 0.70;
Pfa_min = 0.01;
Pfa_max = 0.70;
Set_DET_limits(Pmiss_min,Pmiss_max,Pfa_min,Pfa_max);
det
%call figure, plot DET-curve
figure;
Plot_DET (P_miss, P_fa,color);
title ('Footstep Detection Performance');
hold on;
%find lowest cost point and plot
C_miss = 10;
C_fa = 1;
P_target = 0.01;
Set_DCF(C_miss,C_fa,P_target);
[DCF_opt Popt_miss Popt_fa] = Min_DCF(P_miss,P_fa);
Plot_DET (Popt_miss,Popt_fa,'ko');
hold on; |
Partager