I have an array of numbers that looks something like follows. I want to group the array into subgroups where the numbers are all within 2 of each other. In this case, there would be 3 groups. Is there an easy way to do this? I need the method to be automated for work for arrays 100 entries long.
7340.17340.37340.67349.07349.47358.07358.17358.27358.7% New groups would look like follows:
% Group 1
7340.17340.37340.6% Group 2
7349.07349.4% Group 3
7358.07358.17358.27358.7
Best Answer