Compute the accuracy of a fit
accuracy(referenceM, A)
referenceM
the matrix to use as reference
A
the matrix obtained from a fit