Kendall M G and Stuart A (1969) The Advanced Theory of Statistics (Volume 1) (3rd Edition) Griffin
Knuth D E (1981) The Art of Computer Programming (Volume 2) (2nd Edition) Addison–Wesley
5 Arguments
1:
a – doubleInput
On entry: the mean , of the distribution.
2:
b – doubleInput
On entry: the standard deviation , of the distribution. If b is negative, the distribution of the generated numbers – though not the actual sequence – is the same as if the absolute value of b were used.
6 Error Indicators and Warnings
None.
7 Accuracy
Not applicable.
8 Further Comments
None.
9 Example
The example program prints the first five pseudorandom real numbers from a Normal distribution with mean 1.0 and standard deviation 1.5, generated by nag_random_normal (g05ddc) after initialization by nag_random_init_repeatable (g05cbc).