Class: Wuclan::Models::UserGraphMetrics
- Inherits:
-
Struct
- Object
- Struct
- Wuclan::Models::UserGraphMetrics
- Defined in:
- lib/wuclan/metrics/user_graph_metrics.rb
Instance Attribute Summary collapse
-
#any_in_with ⇒ Object
Returns the value of attribute any_in_with.
-
#any_out_with ⇒ Object
Returns the value of attribute any_out_with.
-
#any_with ⇒ Object
Returns the value of attribute any_with.
-
#at_in_sampled ⇒ Object
Returns the value of attribute at_in_sampled.
-
#at_in_with ⇒ Object
Returns the value of attribute at_in_with.
-
#at_out_sampled ⇒ Object
Returns the value of attribute at_out_sampled.
-
#at_out_with ⇒ Object
Returns the value of attribute at_out_with.
-
#fo_sampled ⇒ Object
Returns the value of attribute fo_sampled.
-
#fr_sampled ⇒ Object
Returns the value of attribute fr_sampled.
-
#fv_in_sampled ⇒ Object
Returns the value of attribute fv_in_sampled.
-
#fv_in_with ⇒ Object
Returns the value of attribute fv_in_with.
-
#fv_out_sampled ⇒ Object
Returns the value of attribute fv_out_sampled.
-
#fv_out_with ⇒ Object
Returns the value of attribute fv_out_with.
-
#id ⇒ Object
Returns the value of attribute id.
-
#re_in_sampled ⇒ Object
Returns the value of attribute re_in_sampled.
-
#re_out_sampled ⇒ Object
Returns the value of attribute re_out_sampled.
-
#rt_in_sampled ⇒ Object
Returns the value of attribute rt_in_sampled.
-
#rt_in_with ⇒ Object
Returns the value of attribute rt_in_with.
-
#rt_out_sampled ⇒ Object
Returns the value of attribute rt_out_sampled.
-
#rt_out_with ⇒ Object
Returns the value of attribute rt_out_with.
Instance Method Summary collapse
-
#cluster_coeff(twitter_user, multi_edge) ⇒ Object
cluster_coeff – Strong links between members of n1 over number of possible links between members of n1.
-
#get_influx ⇒ Object
Influx:.
-
#get_n1i_fv_share(twitter_user) ⇒ Object
n1i_fv_share – Sum, for all that favorite you, of.
-
#get_n1i_strong(twitter_user) ⇒ Object
n1i_strong – Strong links in.
-
#get_n1o_strong(twitter_user) ⇒ Object
n1o_strong – Strong links out.
-
#get_tw_out_share ⇒ Object
tw_out_share – Audience Share:.
Instance Attribute Details
#any_in_with ⇒ Object
Returns the value of attribute any_in_with
3 4 5 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3 def any_in_with @any_in_with end |
#any_out_with ⇒ Object
Returns the value of attribute any_out_with
3 4 5 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3 def any_out_with @any_out_with end |
#any_with ⇒ Object
Returns the value of attribute any_with
3 4 5 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3 def any_with @any_with end |
#at_in_sampled ⇒ Object
Returns the value of attribute at_in_sampled
3 4 5 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3 def at_in_sampled @at_in_sampled end |
#at_in_with ⇒ Object
Returns the value of attribute at_in_with
3 4 5 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3 def at_in_with @at_in_with end |
#at_out_sampled ⇒ Object
Returns the value of attribute at_out_sampled
3 4 5 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3 def at_out_sampled @at_out_sampled end |
#at_out_with ⇒ Object
Returns the value of attribute at_out_with
3 4 5 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3 def at_out_with @at_out_with end |
#fo_sampled ⇒ Object
Returns the value of attribute fo_sampled
3 4 5 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3 def fo_sampled @fo_sampled end |
#fr_sampled ⇒ Object
Returns the value of attribute fr_sampled
3 4 5 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3 def fr_sampled @fr_sampled end |
#fv_in_sampled ⇒ Object
Returns the value of attribute fv_in_sampled
3 4 5 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3 def fv_in_sampled @fv_in_sampled end |
#fv_in_with ⇒ Object
Returns the value of attribute fv_in_with
3 4 5 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3 def fv_in_with @fv_in_with end |
#fv_out_sampled ⇒ Object
Returns the value of attribute fv_out_sampled
3 4 5 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3 def fv_out_sampled @fv_out_sampled end |
#fv_out_with ⇒ Object
Returns the value of attribute fv_out_with
3 4 5 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3 def fv_out_with @fv_out_with end |
#id ⇒ Object
Returns the value of attribute id
3 4 5 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3 def id @id end |
#re_in_sampled ⇒ Object
Returns the value of attribute re_in_sampled
3 4 5 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3 def re_in_sampled @re_in_sampled end |
#re_out_sampled ⇒ Object
Returns the value of attribute re_out_sampled
3 4 5 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3 def re_out_sampled @re_out_sampled end |
#rt_in_sampled ⇒ Object
Returns the value of attribute rt_in_sampled
3 4 5 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3 def rt_in_sampled @rt_in_sampled end |
#rt_in_with ⇒ Object
Returns the value of attribute rt_in_with
3 4 5 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3 def rt_in_with @rt_in_with end |
#rt_out_sampled ⇒ Object
Returns the value of attribute rt_out_sampled
3 4 5 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3 def rt_out_sampled @rt_out_sampled end |
#rt_out_with ⇒ Object
Returns the value of attribute rt_out_with
3 4 5 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3 def rt_out_with @rt_out_with end |
Instance Method Details
#cluster_coeff(twitter_user, multi_edge) ⇒ Object
cluster_coeff – Strong links between members of n1 over number of possible links between members of n1
94 95 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 94 def cluster_coeff(twitter_user, multi_edge) end |
#get_influx ⇒ Object
Influx:
(messages/day) from all your n1
This says how many messages you see go by in a day.
A person with a massive influx is either not reading any tweets (uses twitter as a podium), is dipping into twitter as a news river (we should discount follow links), or is using a tool such as TweetDeck to fake follow (we should more aggressively segregate their strong links)
48 49 50 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 48 def get_influx() # end |
#get_n1i_fv_share(twitter_user) ⇒ Object
n1i_fv_share – Sum, for all that favorite you, of
(favs to you / (max[20, number faved])
if I have 12 faves and four are to you you get (4/20)favshare ; if I have twenty-four, and four are to you, that makes a (1/6)favshare contribution.
72 73 74 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 72 def get_n1i_fv_share( twitter_user) self.n1i_fv_share = twitter_user.n1i_fv_share end |
#get_n1i_strong(twitter_user) ⇒ Object
n1i_strong – Strong links in
86 87 88 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 86 def get_n1i_strong( twitter_user) self.n1i_strong = twitter_user.n1i_strong end |
#get_n1o_strong(twitter_user) ⇒ Object
n1o_strong – Strong links out
79 80 81 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 79 def get_n1o_strong( twitter_user) self.n1o_strong = twitter_user.n1o_strong end |
#get_tw_out_share ⇒ Object
tw_out_share – Audience Share:
(your msgs out/day) / (Sum over n1o of msgs in / day)
This says how much of your followers’ attention is occupied by your tweet stream
60 61 62 |
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 60 def get_tw_out_share() self.tw_out_share = twitter_user.tw_out_share end |