Computes the True Positive Rate (Sensitivity/Recall) between a reference matrix and an estimated matrix. TPR = TP / (TP + FN), where positives are non-zero entries in the reference matrix.
true_positive_rate(reference_m, a)The true positive rate (between 0 and 1), or NA if there are no actual positives in the reference matrix
the reference (ground truth) matrix
the estimated matrix to compare against the reference