plgen - generate samples from a power-law distribution
Contents
Description
Generates a given number of samples from a power-law distribution with an optional exponential cutoff.
The pdf being sampled is given as follows:
P(k) = C * k^(-gamma) * exp(-k/kappa)
where C is an appropriate normalization constant. gamma is given by the second command line argument,
kappa is given by the -k switch.
Name
plgen - generate samples from a power-law distribution
Options
-h shows this help message
-v shows version information
-c generate continuous samples
-k KAPPA
use exponential cutoff with kappa = KAPPA
-o OFFSET
add OFFSET to each generated sample
-s SEED
use SEED to seed the random number generator
-x XMIN
generate a power-law distribution that starts at XMIN
plfit July 2021 PLGEN(1)
Synopsis
plgen [OPTIONS] num_samplesgamma [kappa]
