Class: Wuclan::Models::UserGraphMetrics

Inherits:
Struct
  • Object
show all
Defined in:
lib/wuclan/metrics/user_graph_metrics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#any_in_withObject

Returns the value of attribute any_in_with

Returns:

  • (Object)

    the current value of 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_withObject

Returns the value of attribute any_out_with

Returns:

  • (Object)

    the current value of 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_withObject

Returns the value of attribute any_with

Returns:

  • (Object)

    the current value of any_with



3
4
5
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3

def any_with
  @any_with
end

#at_in_sampledObject

Returns the value of attribute at_in_sampled

Returns:

  • (Object)

    the current value of 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_withObject

Returns the value of attribute at_in_with

Returns:

  • (Object)

    the current value of 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_sampledObject

Returns the value of attribute at_out_sampled

Returns:

  • (Object)

    the current value of 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_withObject

Returns the value of attribute at_out_with

Returns:

  • (Object)

    the current value of 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_sampledObject

Returns the value of attribute fo_sampled

Returns:

  • (Object)

    the current value of fo_sampled



3
4
5
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3

def fo_sampled
  @fo_sampled
end

#fr_sampledObject

Returns the value of attribute fr_sampled

Returns:

  • (Object)

    the current value of fr_sampled



3
4
5
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3

def fr_sampled
  @fr_sampled
end

#fv_in_sampledObject

Returns the value of attribute fv_in_sampled

Returns:

  • (Object)

    the current value of 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_withObject

Returns the value of attribute fv_in_with

Returns:

  • (Object)

    the current value of 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_sampledObject

Returns the value of attribute fv_out_sampled

Returns:

  • (Object)

    the current value of 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_withObject

Returns the value of attribute fv_out_with

Returns:

  • (Object)

    the current value of fv_out_with



3
4
5
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3

def fv_out_with
  @fv_out_with
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



3
4
5
# File 'lib/wuclan/metrics/user_graph_metrics.rb', line 3

def id
  @id
end

#re_in_sampledObject

Returns the value of attribute re_in_sampled

Returns:

  • (Object)

    the current value of 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_sampledObject

Returns the value of attribute re_out_sampled

Returns:

  • (Object)

    the current value of 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_sampledObject

Returns the value of attribute rt_in_sampled

Returns:

  • (Object)

    the current value of 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_withObject

Returns the value of attribute rt_in_with

Returns:

  • (Object)

    the current value of 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_sampledObject

Returns the value of attribute rt_out_sampled

Returns:

  • (Object)

    the current value of 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_withObject

Returns the value of attribute rt_out_with

Returns:

  • (Object)

    the current value of 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_influxObject

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_shareObject

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