gbrand(1)

gbrand1

Sampling from random distributions

Usage

gbrand [options] NAME PARAMETERS ...

Overview

Generates a grid of i.i.d. samples from a distribution. The name of the distribution and its parameters are specified on the command line. the column index. Indeces start from 1. If more than one function are provided they are printed one after the other. The type of random number generator and the default seed can be set with the environment variables GSL_RNG_TYPE and GSL_RNG_SEED, respectively, as documented in GSL manual.

Options

-r

specify number of rows (default 1)

-c

specify number of columns (default 1)

-R

set the seed (default 1)

-v

verbose mode

-h

this help

List of valid distributions (with parameters):

beta

a,b = shape parameters

binomial

p = probability, N = number of trials

bivariate-gaussian

sigmax = x std.dev., sigmay = y std.dev., rho = correlation

cauchy

a = scale parameter

chisq

nu = degrees of freedom

dir-2d

none

dir-3d

none

dir-nd

n1 = number of dimensions of hypersphere

erlang

a = scale parameter, b = order

exponential

mu = mean value

exppow

a = scale parameter, b = power (1=exponential, 2=gaussian)

aexppow

m = mode, al = left scale, ar = right scale, bl = left shape, br = right shape

fdist

nu1, nu2 = degrees of freedom parameters

flat

a = lower limit, b = upper limit

gamma

a = order, b = scale

gaussian-tail

a = lower limit, sigma = standard deviation

gaussian

sigma = standard deviation

geometric

p = bernoulli trial probability of success

gumbel1

a = order, b = scale parameter

gumbel2

a = order, b = scale parameter

hypergeometric

n1 = # tagged, n2 = # untagged, t = number of trials

laplace

a = scale parameter

landau

none

levy

c = scale, a = power (1=cauchy, 2=gaussian)

levy-skew

c = scale, a = power (1=cauchy, 2=gaussian), b = skew

logarithmic

p = probability

logistic

a = scale parameter

lognormal

zeta = location parameter, sigma = scale parameter

negative-binomial

p = probability, a = order

pareto

a = power, b = scale parameter

pascal

p = probability, n = order (integer)

poisson

mu = scale parameter

rayleigh-tail

a = lower limit, sigma = scale parameter

rayleigh

sigma = scale parameter

tdist

nu = degrees of freedom

ugaussian-tail

a = lower limit

ugaussian

none

weibull

a = scale parameter, b = exponent

pareto3

a = power, b = exponential parameter, s = scale parameter

Examples

gbrand -c 2 -r 100 gaussian 2.5

generate two columns of 100 rows each sampling from a Gaussian distribution with mean 0 and standard deviation 2.5

gbrand -R 145 -r 1000 exponential 1

one hundredth exponantial variates with parameters 1, the the seed of the RNG is set to 145

gbrand -r 10 flat 3 4

ten realizations of the r.v. uniformly distributed in [3,4]

Releases

5 releases since Debian 9 (Stretch); the text changed 3 times.

  1. 9
  2. 10
  3. 11
  4. 12–13

Author

Written by Giulio Bottazzi

Reporting bugs

Report bugs to <[email protected]>

Package home page <http://cafim.sssup.it/~giulio/software/gbutils/index.html>

From gbutils 6.3-1+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.