Utility for calculating a realization of a standard normal distribution. More...
#include "cta_system.h"
Go to the source code of this file.
Functions | |
CTAEXPORT void | CTA_rand_seed (int seed) |
Initialize the random generator. | |
CTAEXPORT int | CTA_rand_u (double *x) |
Get an uniform random number from the interval [0 1]. | |
CTAEXPORT int | CTA_rand_n (double *x) |
Get a random number from a normal distribution whit mean 0 and standard deviation 1. |
Utility for calculating a realization of a standard normal distribution.
Definition in file cta_util_statistics.h.
CTAEXPORT int CTA_rand_n | ( | double * | x | ) |
Get a random number from a normal distribution whit mean 0 and standard deviation 1.
x | O receives the random number |
CTAEXPORT void CTA_rand_seed | ( | int | seed | ) |
Initialize the random generator.
seed | I some positive initial seed |
CTAEXPORT int CTA_rand_u | ( | double * | x | ) |
Get an uniform random number from the interval [0 1].
x | O receives the random number |