I'm working on a previously bought recommendation system for a project. The list I'm trying to sort is static and does not change over time. Assuming each user purchases different items at different times, I'm searching for a function that captures both frequency and recency from a user's purchase history.
Is there a well documented function/research to solve this kind of problem?