Mercurial > octave-nkf
comparison scripts/statistics/distributions/discrete_rnd.m @ 9051:1bf0ce0930be
Grammar check TexInfo in all .m files
Cleanup documentation sources to follow a few consistent rules.
Spellcheck was NOT done. (but will be in another changeset)
author | Rik <rdrider0-list@yahoo.com> |
---|---|
date | Fri, 27 Mar 2009 22:31:03 -0700 |
parents | a1dbe9d80eee |
children | 16f53d29049f |
comparison
equal
deleted
inserted
replaced
9044:656ad518f385 | 9051:1bf0ce0930be |
---|---|
21 ## @deftypefn {Function File} {} discrete_rnd (@var{n}, @var{v}, @var{p}) | 21 ## @deftypefn {Function File} {} discrete_rnd (@var{n}, @var{v}, @var{p}) |
22 ## @deftypefnx {Function File} {} discrete_rnd (@var{v}, @var{p}, @var{r}, @var{c}) | 22 ## @deftypefnx {Function File} {} discrete_rnd (@var{v}, @var{p}, @var{r}, @var{c}) |
23 ## @deftypefnx {Function File} {} discrete_rnd (@var{v}, @var{p}, @var{sz}) | 23 ## @deftypefnx {Function File} {} discrete_rnd (@var{v}, @var{p}, @var{sz}) |
24 ## Generate a row vector containing a random sample of size @var{n} from | 24 ## Generate a row vector containing a random sample of size @var{n} from |
25 ## the univariate distribution which assumes the values in @var{v} with | 25 ## the univariate distribution which assumes the values in @var{v} with |
26 ## probabilities @var{p}. @var{n} must be a scalar. | 26 ## probabilities @var{p}. @var{n} must be a scalar. |
27 ## | 27 ## |
28 ## If @var{r} and @var{c} are given create a matrix with @var{r} rows and | 28 ## If @var{r} and @var{c} are given create a matrix with @var{r} rows and |
29 ## @var{c} columns. Or if @var{sz} is a vector, create a matrix of size | 29 ## @var{c} columns. Or if @var{sz} is a vector, create a matrix of size |
30 ## @var{sz}. | 30 ## @var{sz}. |
31 ## @end deftypefn | 31 ## @end deftypefn |
32 | 32 |
33 ## Author: KH <Kurt.Hornik@wu-wien.ac.at> | 33 ## Author: KH <Kurt.Hornik@wu-wien.ac.at> |
34 ## Description: Random deviates from a discrete distribution | 34 ## Description: Random deviates from a discrete distribution |