Maths
General scaling
All scales are calculated as being between 0 and 1.
A scale can be used as a multiplier for the tweet position as well as being scaled by an effect value.
tweet position = (formula) * (formula) ....
where
formula = scale * effect
ie
tweet position = (chronological order)
* (feed importance scale * feed important effect)Feed scaling
Feed importance scale. [FIS]
Feeds from A, B, C, D, and E are scored privately with an “interest” level. Feed A isn’t interesting, so receives -3, B is indifferent at 0 and E is the most interesting at +3.
| Feed | Score | Formula1 | Formula2 | |
| A | -3 | 1 | 0.043478 | |
| B | 0 | 4 | 0.173913 | |
| C | 1 | 5 | 0.217391 | |
| D | 2 | 6 | 0.26087 | |
| E | 3 | 7 | 0.304348 | |
| -3 | 23 | 1 |
Normalise the score from 1 upwards.
Minimum(score) = -3
Formula1 = Score - Minimum(score) + 1Scale the score between 1 and total to get a percentage between 0 and 1.
Sum(Formula1) = 23
Formula2 = Formula1 / Sum(Forumla1)Add up the percentages to check the maths is correct.
Sum(Formula2) = 1
This type of functionality will be built-in and available to a theme developer. More to follow
