Step 1: Download
Step 2: Test: (You only need replace 'tar' and 'non' with your own value)
figure;
tar = randn(1,100)*2+1; non = randn(1,100);
[pmiss,pfa] = rocch(tar,non);
plot(pfa,pmiss,'b-');
axis('square');grid;
title('flatter DET');
% demo2:
% demo2:
dcfWeights_SRE08=[10*0.01 1*0.99];
dcfWeights_SRE10=[1*0.001 1*0.999];
dcfWeights=dcfWeights_SRE10
[x,y,EER,minDCF] = rocchdet(llr_target,llr_ nontarget,dcfWeights');
[x2,y2,EER2,minDCF2008] = rocchdet(llr_target,llr_ nontarget,dcfWeights_SRE08');
[pmiss,pfa] = Compute_DET(llr_target,llr_ nontarget);
hold on; make_det_axes();
plot(x,y,'g',probit(pfa), probit(pmiss),'r');
legend(sprintf('ROCCH-DET (EER = %3.3f%%)',EER*100),'classical DET',...
'Location','SouthWest');
title('EER read off ROCCH-DET');
hold off;
fprintf('\nCosine Distance Scoring Based baseline system performance on the protocol of NIST SRE %d\n', NIST_SRE);
fprintf('\nEER=%3.5f%%\t\ tminDCF_new=%3.10f\tminDCF_ old=%3.10f\n',EER*100, minDCF,minDCF2008);
dcfWeights=dcfWeights_SRE10
[x,y,EER,minDCF] = rocchdet(llr_target,llr_
[x2,y2,EER2,minDCF2008] = rocchdet(llr_target,llr_
[pmiss,pfa] = Compute_DET(llr_target,llr_
hold on; make_det_axes();
plot(x,y,'g',probit(pfa),
legend(sprintf('ROCCH-DET (EER = %3.3f%%)',EER*100),'classical DET',...
'Location','SouthWest');
title('EER read off ROCCH-DET');
hold off;
fprintf('\nCosine Distance Scoring Based baseline system performance on the protocol of NIST SRE %d\n', NIST_SRE);
fprintf('\nEER=%3.5f%%\t\
No comments:
Post a Comment