Basic measures from the confusion matrix.
ebc_TP(detected, true)
ebc_FP(detected, true)
ebc_FN(detected, true)
ebc_TN(detected, true, all, m = length(all))
Vector of elements that are detected.
Vector of element that are supposed to be detected.
Vector of all elements.
Total number of elements.
An integer.
See ebc_allmeasures
for the description of the measures.
ebc_TP(detected = c("A", "C", "D"), true = c("A", "B", "C"))
#> [1] 2
ebc_FP(detected = c("A", "C", "D"), true = c("A", "B", "C"))
#> [1] 1
ebc_FN(detected = c("A", "C", "D"), true = c("A", "B", "C"))
#> [1] 1
ebc_TN(detected = c("A", "C", "D"), true = c("A", "B", "C"),
all = LETTERS[1:6])
#> [1] 2
ebc_TN(detected = c("A", "C", "D"), true = c("A", "B", "C"), m = 6)
#> [1] 2