What you desire is simply amazing. You have the types of data that interest you: increase and decrease data. Increasing data is considered βgood,β well, if it is increasing. Data reduction is considered "better" the closer to zero.
It turns out that all four datasets are prime integers:
data increase
- share: positive integer
s \in N_0 (every integer from zero to infinity) - retweets: positive integer
r \in N_0
data reduction
To reduce data, you want to use the absolute value as an indicator:
- Let
t_0 be the timestamp (unix or so) of the article. - Let
T be the current timestamp. - Let
l_0 denote the length of the article considered "best." - Let
L denote the actual length of the article.
Then:
- time:
|t_0 - T| the closer to zero - length:
|l_0 - L| the closer to zero
since the absolute value is a natural number:
|l_0 - L| + |t_0 - T| closer to zero since |t_0 - T| and |l_0 - L| closer to zero.
The same is true for increasing numbers.
So, the more likely that the article should be βcorrectβ in length and new, the closer this number is to zero.
output
the factor of increasing number over decreasing itself increases. Think about it: the smaller the denominator, the greater the coefficient. The larger the numerator, the greater the coefficient.
This means: if you consider the "better" factor
(s+r) / (|l_0 - L| + |t_0 - T|)
increasing.
This is not necessarily an integer.
Accessory
You can moderate the growth of stocks and retweets, so the account becomes a little "natural" using ln .
ln(s+r) / (|l_0 - L| + |t_0 - T|)
You can use exp to soften the denominator:
ln(s+r) / exp(-(|l_0 - L| + |t_0 - T|))