thehumblebrag / droplifter

A proximity based chat application.
2 stars 1 forks source link

Maths #27

Open chocopie opened 10 years ago

chocopie commented 10 years ago

Maths

sjrmanning commented 10 years ago

:poop:

chocopie commented 10 years ago

@stafu getting the maths in takes 2 parts:

  1. listening radius based on number of active users in the area (TODO)
  2. sort priority for drops we can hear (use this formula, it's pretty good) priority = (base + (likes * likes_multiplier)) e ^ (decay_rate x drop_age)

constants for formula: base = 100 likes_multiplier = 0.5 decay_rate = -0.07

e is euler's number drop_age is the difference between now and when the drop was created

as a drop gets older, the priority gets less, so newer and more liked drops will take priority.