uclatommy/tweetfeels

Divide by zero when total followers in an aggregation is 0

Closed this issue · 0 comments

For low volume topics, it is very possible for a time-boxed calculation to contain only 1 tweet and if that twitter user has 0 followers, the weighted average calculation will divide by zero.

In addition to handling this case, I also propose that we add together follower count and friend count for the weighting.