Put simply, I have thousands of users and a number associated with each user. Let’s say the number represents their activity on a website.
Ex:
Anna, 202
Bob, 109
Charlie, 146
Don, 106
Emily, 68
Fernando, 120
I have another list of numbers (cutoffs) and an associated descriptor.
Ex:
200, very active
150, active
100, somewhat active
0, inactive
I want to match these such that every user is given the appropriate descriptor: match the users to the descriptor that is closest without going over.
Ex:
Anna, 202, very active
Bob, 109, somewhat active
Charlie, 146, somewhat active
Don, 106, somewhat active
Emily, 68, inactive
Fernando, 170, active
Any ideas on how I can implement this in Parabola? Thanks!