Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: distribs
See also: randomize2 ranexp2 uniform2

Quantlet: normal2
Description: Normal2 generates arrays up to eight dimensions of pseudo random variables with the standard normal distribution. The algorithm by Box-Muller is used.

Usage: x=normal2(d1{,...,dn})
Input:
d1, ..., dn scalars - number of elements in dimension 1, ..., n; 1 <= n <= 8
Output:
x d1 x d2 x ... x dn matrix containing pseudo random variables with a standard normal distribution

Example:
library("distribs")
randomize2(0)
normal2(2, 3)

Result:
Contents of x
[1,]  0.11062  0.29474   2.2974
[2,] -0.97538 -0.018716 -0.25245



Author: P. Cizek, 20000926
(C) MD*TECH Method and Data Technologies, 05.02.2006