i need to implement a project with visual intimacy between persons,can anyone recommends an algorithm for person’s intimacy in phone contact?
intimacy attenuate over time(the intimacy attenuates automatically if you havnt click/dial it for a long time).
Assume in my address book:
Person Intimacy(0-100%)
A 40%
B 80%
C 10%
A’s intimacy needs raise after i call A ,like this
Person Intimacy(0-100%)
A 42%
B 80%
C 10%
nothing happens after follow 5 days, A,B,C’s intimacy need decline,like this
Person Intimacy(0-100%)
A 37%
B 78%
C 8%
thanks for everyone’s answer
You could use an exponential decaying number expressed as a Half Life
I would be surprised if there is a standard solution to your problem.
A typical graph has a shape like this.
For this you could use an Exponential Weighted Moving Average Again, I just speculating what might be useful.
From the data you gave, the half life is about 28 days. You can use the EWMA on a daily basis like this
e.g.
Say the decay is 28 days and I call the same person for 200 days. The score looks like
prints
Its not possible for the score to larger than the maximum value (in this case the
1in the equation).