I'm trying to calculate in percentage how symmetric a concrete Matrix is.
The "traditional" way of calculating symmetry would be that I have as input an arbitrary square matrix M of size N×N and that the algorithm's output must be true (=symmetric) if M[i,j] = M[j,i] for all j≠i, false otherwise.
How would be a adequate handling of calculating the percentage? So not just saying symmetric or asymmetric? Maybe counting the times j≠i and divide it by the overall amount of (i,j) ?
So f.e. if I have the following Matrixes:
1 1 1 1 1 1
A = 2 2 2 B = 2 2 2
1 1 2 3 4 5
then I need to know that A is "more symmetric" than B, even both are not symmetric.