- map(seed;a,b,c,d;w,x,y,z) |
+ /MAP(seed;w,x,y,z;a,b,c,d) |
Option 1 - &map($seed,[\$w,\$x,\$y,\$z],[$a,$b,$c,$d]) or
Option 2 - &map($seed,\@mappedArray,[$a,$b,$c,$d])
Option 3 - @mappedArray = &map($seed,[$a,$b,$c,$d])
@@ -560,10 +600,24 @@
$w, $x, $y, and $z are variables |
The rmap functions does the reverse action of map if the same seed
is used in calling map and rmap. |
- In CAPA, the arguments are divided into three groups separated
- by a semicolon ;. In LON-CAPA, the separation is done by using [] brackets or
- using an array @a. Note the backslash (\) before the arguments in the
- second and third groups. |
+ In CAPA, the arguments are divided into
+ three groups separated by a semicolon ;. In LON-CAPA, the
+ separation is done by using [] brackets (with create an
+ unamed vector reference) or using an array @a. Note the
+ backslash (\) before the arguments in the second and
+ third groups (Which cause Perl to send to variable
+ locations rather than the variable values, similar to a C
+ pointer). |
+
+
+
- NOT IMPLEMENTED IN CAPA |
- @return_array=&random_multivariate_normal ($item_cnt,$seed,@mean,@covar)
- NOTE: @mean should be a length p array of real numbers. @covar should be a length
- p array of references to length p arrays or real numbers (i.e. a p by p matrix. |
+ NOT DOCUMENTED IN CAPA |
+ @return_array=&random_multivariate_normal ($item_cnt,$seed,\@mean,\@covar)
+ NOTE: @mean should be of length p array of real numbers. @covar should be a length
+ p array of references to length p arrays of real numbers (i.e. a p by p matrix. |
Generate $item_cnt deviates of multivariate_normal distribution with
mean vector @mean and variance-covariance matrix. |
- New to LON-CAPA |
+ Note the backslash before the @mean and @covar arrays. |