Greetings, I'm currently working on a little pet project for fun and have come across a brick wall. I came up with a way to solve this years ago but have since lost my notes on how I did it and am unable to replicate my solution
I have several 4 part ratios i.e. W:X:Y:Z
One of these ratios is the main ratio that I work with, the other ratios are the compare too ratio.
What I need to do is find the ratio that is most similar to the main ratio in proportion.
A simple add all the numbers together comparison is not going to cut it as if the main ratio is say 3:4:50:2 and two comparison ratios are 3:4:0:2 and 1:2:6:1 the comparison ratios would show as equal but the second one is most similar.
One thing of not is negative numbers can and will appear in the comparison ratio often, and while it is possible for them to appear in the main ratio it should be a very rare occurrence.
On a side note a computer will be choosing and displaying the most similar comparison ratio.
I have several 4 part ratios i.e. W:X:Y:Z
One of these ratios is the main ratio that I work with, the other ratios are the compare too ratio.
What I need to do is find the ratio that is most similar to the main ratio in proportion.
A simple add all the numbers together comparison is not going to cut it as if the main ratio is say 3:4:50:2 and two comparison ratios are 3:4:0:2 and 1:2:6:1 the comparison ratios would show as equal but the second one is most similar.
One thing of not is negative numbers can and will appear in the comparison ratio often, and while it is possible for them to appear in the main ratio it should be a very rare occurrence.
On a side note a computer will be choosing and displaying the most similar comparison ratio.