Programmer Guide/Command Reference/EVAL/grand: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
Generation of gaussian distributed pseudo random numbers.
Generation of gaussian distributed pseudo random numbers.
 
;Usage: <code>grand(''m'' {, ''s'' , ''seed'' , ''nr'' , ''nc''})</code>
;Usage: '''<code>grand(''m'' {, ''s'' {, ''seed'' {, ''nr'' {, ''nc''}}}})</code>'''
:;''m'': mean value of the gaussian distribution
:;''m'': mean value of the gaussian distribution
:;''s'': standard deviation of the gaussian distibution (default=1)
:;''s'': standard deviation of the gaussian distibution (default=1)
Line 9: Line 8:
:;''nc'': number of columns of the result (default=1)
:;''nc'': number of columns of the result (default=1)
;Result 2: A numeric object ''r'' with ''nr'' rows and ''nc'' columns. Each element of ''r'' is set to a gaussian distibuted pseudo random number with mean ''m'' and standard deviation ''s''.
;Result 2: A numeric object ''r'' with ''nr'' rows and ''nc'' columns. Each element of ''r'' is set to a gaussian distibuted pseudo random number with mean ''m'' and standard deviation ''s''.
;See also: [[../rand|rand]], [[../sample|sample]], [[../shuffle|shuffle]]


;See also: [[Programmer_Guide/Command_Reference/EVAL/rand|rand]], [[Programmer_Guide/Command_Reference/EVAL/sample|sample]], [[Programmer_Guide/Command_Reference/EVAL/shuffle|shuffle]]
[[../#Functions|<function list>]]
 
[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]]

Latest revision as of 10:45, 21 April 2011

Generation of gaussian distributed pseudo random numbers.

Usage
grand(m {, s , seed , nr , nc})
m
mean value of the gaussian distribution
s
standard deviation of the gaussian distibution (default=1)
seed
if this value is not equal 0, it is used to initialize the random number generator (default=0)
nr
number of rows of the result (default=1)
nc
number of columns of the result (default=1)
Result 2
A numeric object r with nr rows and nc columns. Each element of r is set to a gaussian distibuted pseudo random number with mean m and standard deviation s.
See also
rand, sample, shuffle

<function list>

Navigation menu

Personal tools