Twipler

An Open Source Twitter Web Client in ASP.NET
 

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.

FeedScoreFormula1Formula2
A-310.043478
B040.173913
C150.217391
D260.26087
E370.304348
-3231

Normalise the score from 1 upwards.

    Minimum(score) = -3
    Formula1 = Score - Minimum(score) + 1

Scale 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

Tags: nice-to-have
blog comments powered by Disqus
 

Try it!

Archive

 
Copyright

Copyright © 2009-2010 Ian Quigley