So I’m sure someone has already done something similar. I’ve got a custom list of links, and track how many times they were clicked, and when last they were clicked. I want to sort them somehow usefully based upon both factors. Anyone can point me towards an existing solution or better yet discussion thereof? I have a few ideas of how this could be implemented, but expect there is an easier answer.
EDITED FOR CLARIFICATION (was using phone to post):
So my current idea is to halve the weight of the clicks, double each period, with a period being a day. That is:
Day ... # Clicks are
<1 ..... Full Value
<2 ..... Halved value
<4 ..... 1/4th value
<8 ..... 1/8th value
The premise being that both recency and frequency of clicks means it would be more useful to have them first in the list.
One of the simplest way is just a weighted mean of both values, you should first normalize them according to their max value like
clicks / maxClicks, this will span from 0.0 to 1.0(now - lastVisited) / threshold, discarding all items that had been clicked before your thresholdYou can start from something like this and then tweak it according to your needs..