Discrete Powerlaw Random Generator

Share:

Description

Random generator of discrete power law distribution with parameters xmin and alpha.

Usage

1
rdispl(n, xmin, alpha, xmax = 1e+05)

Arguments

n

Number of observations.

xmin

The lower bound of the powerlaw distribution.

alpha

The scaling parameter.

xmax

The maximum value generated.

Examples

1
x = rdispl(n = 1e4, xmin = 10, alpha = 2.5, xmax = 1e5)