Compute the MCC given the confusion matrix.

algoMCC(tp, fn, fp, tn)

Arguments

tp

The number of true positive classifications.

fn

The number of false negative classifications.

fp

The number of false positive classifications.

tn

The number of true negative classifications.