Scroll to navigation

PLGEN(1) User Commands PLGEN(1)

NAME

plgen - generate samples from a power-law distribution

SYNOPSIS

plgen [OPTIONS] num_samples gamma [kappa]

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.

OPTIONS

shows this help message
shows version information
generate continuous samples
use exponential cutoff with kappa = KAPPA
add OFFSET to each generated sample
use SEED to seed the random number generator
generate a power-law distribution that starts at XMIN
July 2021 plfit