ebc_TP {evabic}R Documentation

Confusion measures.

Description

Basic measures from the confusion matrix.

Usage

ebc_TP(detected, true)

ebc_FP(detected, true)

ebc_FN(detected, true)

ebc_TN(detected, true, all, m = length(all))

Arguments

detected

Vector of elements that are detected.

true

Vector of element that are supposed to be detected.

all

Vector of all elements.

m

Total number of elements.

Details

See ebc_allmeasures for the description of the measures.

Value

An integer.

See Also

ebc_TPR, ebc_tidy, ebc_allmeasures

Examples

ebc_TP(detected = c("A", "C", "D"), true = c("A", "B", "C"))
ebc_FP(detected = c("A", "C", "D"), true = c("A", "B", "C"))
ebc_FN(detected = c("A", "C", "D"), true = c("A", "B", "C"))
ebc_TN(detected = c("A", "C", "D"), true = c("A", "B", "C"),
       all = LETTERS[1:6])
ebc_TN(detected = c("A", "C", "D"), true = c("A", "B", "C"), m = 6)

[Package evabic version 0.0.3 Index]