generate_user_magnitude | R Documentation |
Function for sampling from the powerlaw distribution of user influence it is the equivalent of the Richter-Gutenberg distribution in the Helmstetter model the powerlaw distribution was determined from the twitter data, from the #retweets alpha = 2.016, xmin = 1. Draw n values
generate_user_magnitude(n, alpha = 2.016, mmin = 1)
n |
The number of samples to be generated |
alpha |
Powerlaw distribution parameters |
mmin |
Powerlaw distribution parameters |
A single number, a random user magnitude
generate_user_magnitude(n = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.