Random functions.


real gammln(real xx)
Returns the natural logarithm of the gamma function
void getShuffledIndices(int* indices, int n_indices)
Returns in indices n_indices shuffled.
void shuffle(void* tabular, int size_elem, int n_elems)
Shuffles tabular, which contains n_elems of size size_elem
void seed()
Initializes the random number generator with the cpu time
void manual_seed(long x)
Initialzes the random number generator with the given long "x"
long get_seed()
Returns the current seed used by the random number generator
real uniform()
Returns a random number uniformly distributed between 0 and 1
real bounded_uniform(real a, real b)
Returns a random number uniformly distributed between a and b
real expdev()
Returns an exponential distributed random number
real gaussian_01()
Returns a random number gaussian with mean 0 and standard deviation 1
real gaussian_mu_sigma(real mu, real sigma)
Returns a random number gaussian with mean "mu" and standard dev "sigma"
real gamdev(int ia)
Returns a gamma distributed random number
real poidev(real xm)
Returns a poisson random number with lambda = "xm"
real bnldev(real pp, int n)
Returns a binomial random number with probability = 'pp' and trials number = 'n'


Documentation

Random functions.

Author:
Samy Bengio (bengio@idiap.ch) Yoshua Bengio (bengioy@iro.umontreal.ca) Ronan Collobert (collober@iro.umontreal.ca)

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.