Does anyone know or have good idea how to make following comparison simpler than manually?
Input data:
V1 V2 V3 V4 V5 V6
E1 1 4 3 2 6 5
E3 2 1 3 4 5 6
Output table:
V1 V2 V3 V4 V5 V6
V1 0 1 2 2 2 2
V2 1 0 1 1 2 2
V3 0 1 0 1 2 2
V4 0 1 1 0 2 2
V5 0 0 0 0 0 1
V6 0 0 0 0 1 0
Explanation:
Logic of table is following - I check V1 values and compare them with V2 values to find out how many cases from them V1 value is less than V2 value.
In this example one value in V1 is less than V2 and opposite. So into table I will write 1.
And so I compare all cases to each other.
As I have those comparisons to make quite a lot than started to think about possible non-manual solution
Input data:
V1 V2 V3 V4 V5 V6
E1 1 4 3 2 6 5
E3 2 1 3 4 5 6
Output table:
V1 V2 V3 V4 V5 V6
V1 0 1 2 2 2 2
V2 1 0 1 1 2 2
V3 0 1 0 1 2 2
V4 0 1 1 0 2 2
V5 0 0 0 0 0 1
V6 0 0 0 0 1 0
Explanation:
Logic of table is following - I check V1 values and compare them with V2 values to find out how many cases from them V1 value is less than V2 value.
In this example one value in V1 is less than V2 and opposite. So into table I will write 1.
And so I compare all cases to each other.
As I have those comparisons to make quite a lot than started to think about possible non-manual solution