I have a list of values similar to this:
[[100,100],[101,101],[101,103],[102,103],[104,101],[103,101],[542,121],[943,123]]
I'd like to reduce the near values to a single value - it can be an average, but I'm not tied to that specificity - while maintaining the unique values.
So from that example list, I'd like to get something like:
[[101,103],[542,121],[943,123]]
I've considered just dividing and rounding the values, getting rid of the repeating values, then multiplying them back to get to my scale, but that would give me a result of
[[100,105],[540,120],[945,125]]
and I'd like to maintain the uniqueness of the unique values.