0

compare arrays’ values

Hi all,

I have three arrays that represent three diffrent limits restrictions and that are invariable:

Array1 (x1;x2;x3)

Array2 (y1;y2;y3)

Array3 (z1;z2;z3)

I have a variable matrix that I need to compare with the arrays above to obtain the corresponding compliance level.

Any ideas?

 

Many thanks

Max

2 replies

null
    • Danjamesmedia
    • 2 yrs ago
    • Reported - view

    You would need to use loops to compare your results against the matrices.

    Send over an example of the matrices, and how the compliance level is calculated when comparing to them, and I can write the code for this

    • maxvalentino
    • 2 yrs ago
    • Reported - view

    Many thanks James.

    I have three level of compliances.

    Foundational: 7;5;3

    Progressive: 5;3;2

    Aspirational 2;1;1.

    Considering the matrix 6;2;1 the result should be Foundational because even if the second value of the Matrix is less than Progressive, the first value is higher than Progressive.

    Considering the matrix 3;4;5 the result should be "Fail" because the third value exceed the third Foundational value.

     

    I should compare the matrices per column.

     

    Many thanks

    Max

Content aside

  • 2 yrs agoLast active
  • 2Replies
  • 269Views