Fixed decaying weight implementation.

Note:
- exponential decay is a bit too steep
- when computing the weighted sum, we divide by the sum of initial
weights; debatable if this is ok or we should just have a standard sum
and decrease the weight of the mechanism.