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)

Arguments

n

The number of samples to be generated

alpha

Powerlaw distribution parameters

mmin

Powerlaw distribution parameters

Value

A single number, a random user magnitude

Examples

generate_user_magnitude(n = 1)
#> [1] 2.441732