PGARandomGaussian(5)

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).

  1. 5.0–8

From pgapack 1.1.1-3 in Debian 8 (Jessie). Parsed by carta from the page's man source.