plgen1
Generate samples from a power-law distribution
Usage
plgen [OPTIONS]
num_samples
gamma
[kappa]
Overview
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.
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
Releases
Unchanged in 2 releases since Debian 12 (Bookworm).