PGARandomGaussian(3)

PGARandomGaussian3

Returns an approximation to a gaussian random number

Part of PGARandomGaussian(5).

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

8 releases since Debian 1.1 (Buzz); the text changed 1 time.

  1. 1.1
  2. 1.2–3.1

From pgapack 1.0.0.1-3 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.