R/utils.R
calculate_specificity.Rd
Calculates specificity (true negative rate) from confusion matrix values
calculate_specificity(tn, fp)
Number of true negatives
Number of false positives
Numeric specificity value or NA when inputs are not valid