Created
January 18, 2012 03:37
-
-
Save suapapa/1630728 to your computer and use it in GitHub Desktop.
SNS 역량지수 산출공식 in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://news.naver.com/main/read.nhn?mode=LSD&mid=sec&sid1=100&oid=003&aid=0004297105 | |
def bideTwitterScore(cntFollower, cntFollowing, cntTweet, cntRetweet): | |
import math | |
scoreFollow = (math.log10((cntFollower + cntFollowing) / 1000.0)) / 10 + 1 | |
scoreTweet = 1 + cntTweet + (cntRetweet / 100) | |
return scoreFollow * scoreTweet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment