title: How to decide on weights?
body: <p>For my work, I need some kind of algorithm with the following input and output:</p>
  
  <p>Input: a set of dates (from the past). Output: a set of weights - one weight per one given date (the sum of all weights = 1).</p>
  
  <p>The basic idea is that the closest date to today's date should receive the highest weight, the second closest date will get the second highest weight, and so on...</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks in advance!</p>