computes auc and pauc using trapez rule
ms_bench_auc(FPR, TPR, fpr_threshold = 1)
Arguments
- FPR
array of FPR
- TPR
array of corresponding TPR
- fpr_threshold
default = 1
See also
Other benchmarking:
Benchmark,
benchmark_from_file(),
collect_benchmark_results(),
ionstar_bench_preprocess(),
make_benchmark(),
ms_bench_add_scores(),
ms_bench_ap(),
plot_benchmark_comparison(),
read_benchmark_results(),
read_contrast_results(),
write_benchmark_results(),
write_contrast_results()
Examples
FPR <- c(0, 0.1, 0.2, 0.5, 1.0)
TPR <- c(0, 0.4, 0.7, 0.9, 1.0)
auc <- ms_bench_auc(FPR, TPR)
stopifnot(is.numeric(auc), length(auc) == 1, auc > 0)