plgen
generate samples from a power-law distribution
- Provided by: plfit (Version: 0.9.3+ds-1ubuntu1)
- Report a bug
generate samples from a power-law distribution
plgen [OPTIONS] num_samples gamma [kappa]
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.