The following two statements about what you are trying to do seem very different to me.
If the groups are the same, I would like to look at the first numerical value. If they are within 10 of each other, I would like to take the lesser value and then look at the second number. If they are within 10, I would like to take the greater value.
I want at least 10 units of separation between the max of one element and the min of the next.
If you have the following:
group1 10 15 group1 22 50
Do you want these to be merged because the "separation" between 15 and 22 is less than 10 or not merged because neither 10 and 22 nor 15 and 50 are within 10 of each other?
In reply to Re^3: compare values within a hash
by ig
in thread compare values within a hash
by rookierabbit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |