Scroll to navigation

GBRAND(1) User Commands GBRAND(1)

NAME

gbrand - Sampling from random distributions

SYNOPSIS

gbrand [options] NAME PARAMETERS...

DESCRIPTION

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

specify number of rows (default 1)
specify number of columns (default 1)
set the seed (default 1)
verbose mode
this help

List of valid distributions (with parameters):

a,b = shape parameters
p = probability, N = number of trials
sigmax = x std.dev., sigmay = y std.dev., rho = correlation
a = scale parameter
nu = degrees of freedom
none
none
n1 = number of dimensions of hypersphere
a = scale parameter, b = order
mu = mean value
a = scale parameter, b = power (1=exponential, 2=gaussian)
m = mode, al = left scale, ar = right scale, bl = left shape, br = right shape
nu1, nu2 = degrees of freedom parameters
a = lower limit, b = upper limit
a = order, b = scale
gaussian-tail
a = lower limit, sigma = standard deviation
sigma = standard deviation
p = bernoulli trial probability of success
a = order, b = scale parameter
a = order, b = scale parameter
n1 = # tagged, n2 = # untagged, t = number of trials
a = scale parameter
none
c = scale, a = power (1=cauchy, 2=gaussian)
levy-skew
c = scale, a = power (1=cauchy, 2=gaussian), b = skew
p = probability
a = scale parameter
zeta = location parameter, sigma = scale parameter
p = probability, a = order
a = power, b = scale parameter
p = probability, n = order (integer)
mu = scale parameter
rayleigh-tail
a = lower limit, sigma = scale parameter
sigma = scale parameter
nu = degrees of freedom
ugaussian-tail
a = lower limit
none
a = scale parameter, b = exponent
a = power, b = exponential parameter, s = scale parameter

EXAMPLES

generate two columns of 100 rows each sampling from a Gaussian distribution with mean 0 and standard deviation 2.5
one hundredth exponantial variates with parameters 1, the the seed of the RNG is set to 145
ten realizations of the r.v. uniformly distributed in [3,4]

AUTHOR

Written by Giulio Bottazzi

REPORTING BUGS

Report bugs to <gbutils@googlegroups.com>

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

COPYRIGHT

Copyright © 2001-2018 Giulio Bottazzi This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (version 2) as published by the Free Software Foundation;

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

February 2019 gbrand 6.0.beta2