TNR: True Negative Rate (TNR)

View source: R/metrics.R

TNRR Documentation

True Negative Rate (TNR)

Description

This is a function that compares the structure of two matrices A and B. It outputs the number of entries where A and B are both 0. A and B need to have the same number of rows and columns

Usage

TNR(A, B, tol = 1e-04)

Arguments

A

A matrix.

B

A matrix (assumed to be the ground truth)..

tol

tolerance for declaring the entries non zero.

Value

True Negative Rate (nb of values that are zero in A and zero in B / (nb of values that are zero in A))


ccar3 documentation built on Sept. 16, 2025, 9:11 a.m.

Related to TNR in ccar3...