Mercurial > hg > octave-nkf
comparison scripts/statistics/distributions/geoinv.m @ 17401:6643f21e27f3
doc: Document the form of the geometric distribution being used (II) in geo* functions.
* scripts/statistics/distributions/geocdf.m,
scripts/statistics/distributions/geoinv.m,
scripts/statistics/distributions/geopdf.m,
scripts/statistics/distributions/geornd.m: Document the form of the geometric
distribution being used (II) in geo* functions.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 10 Sep 2013 07:28:20 -0700 |
parents | f3d52523cde1 |
children | d63878346099 |
comparison
equal
deleted
inserted
replaced
17400:3feff4d08953 | 17401:6643f21e27f3 |
---|---|
19 | 19 |
20 ## -*- texinfo -*- | 20 ## -*- texinfo -*- |
21 ## @deftypefn {Function File} {} geoinv (@var{x}, @var{p}) | 21 ## @deftypefn {Function File} {} geoinv (@var{x}, @var{p}) |
22 ## For each element of @var{x}, compute the quantile (the inverse of | 22 ## For each element of @var{x}, compute the quantile (the inverse of |
23 ## the CDF) at @var{x} of the geometric distribution with parameter @var{p}. | 23 ## the CDF) at @var{x} of the geometric distribution with parameter @var{p}. |
24 ## | |
25 ## The geometric distribution models the number of failures (@var{x}-1) of a | |
26 ## Bernoulli trial with probability @var{p} before the first success (@var{x}). | |
24 ## @end deftypefn | 27 ## @end deftypefn |
25 | 28 |
26 ## Author: KH <Kurt.Hornik@wu-wien.ac.at> | 29 ## Author: KH <Kurt.Hornik@wu-wien.ac.at> |
27 ## Description: Quantile function of the geometric distribution | 30 ## Description: Quantile function of the geometric distribution |
28 | 31 |