prcDataGet
PRC (Precision-Recall Curve) data generation
Contents
Syntax
- [ths, precision, recall]=prcDataGet(data1, data2, method, prior, showPlot);
Description
[ths, precision, recall]=prcDataGet(data1, data2, opt, showPlot) returns the parameters for DET plot.
- data1: likelihood vector for negative cases (with lower likelihood)
- data2: likelihood vector for positive cases (with higher likelihood)
- method: method for computing threshold that minimizes FP+FN
- method=1: FP = (count of FP cases)/(count of all data); FN is defined similarly.
- method=2: FP = (count of FP cases)/(total negative case count); FN is defined similarly.
References
- A. Martin, G. Doddington, T. Kamm, M. Ordowski, and M. Przybocki, "The DET curve in assessment of detection task performance,", in Proceedings of Eurospeech, Rhodes, Greece, 1997, pp. 1895�V1898.
Example
data1=randn(1,50)/2+1;
data2=randn(1,25)+2.5;
opt=prcDataGet('defaultOpt');
[ths, precision, recall]=prcDataGet(data1, data2, opt, 1);