rnd_disc_pl: Random numbers from discrete power law distribution

Description Usage Arguments Value Author(s) Examples

View source: R/plot_power_laws.R

Description

Generate n power-law distributed discrete values.

Usage

1
rnd_disc_pl(n, xmin = 2, gma = 2.5)

Arguments

n

integer; The number of values to generate.

xmin

numeric; Start of the power law behaviour.

gma

numeric; Exponent of the power law.

Value

A vector of n power-law distributed values.

Author(s)

Gregorio Alanis-Lobato galanisl@uni-mainz.de

Examples

1
2
# Generate 10000 power-law distributed values
pl_disc <- rnd_disc_pl(10000, 2, 2.3)

galanisl/PowerLawPlots documentation built on May 5, 2019, 12:30 p.m.