PGARandomGaussian5
Returns an approximation to a gaussian random number
Usage
#include "pgapack.h" double PGARandomGaussian(ctx, mean, sigma) PGAContext *ctx double mean double sigma
Input parameters
mean
|
- the mean of the Gaussian distribution |
|---|---|
sigma
|
- the standard deviation of the Gaussian distribution |
Output parameters
- none
Location
random.c
Examples
Example: To generate a Gaussian random number with mean 0.0 and standard deviation 1.0 use PGAContext *ctx; : r = PGARandomGaussian(ctx, 0.0, 1.0);
Releases
Unchanged in 4 releases since Debian 5.0 (Lenny).