Mercurial > hg > octave-lyh
changeset 17409: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 | 3feff4d08953 |
children | 3cf4250cc67e |
files | scripts/statistics/distributions/geocdf.m scripts/statistics/distributions/geoinv.m scripts/statistics/distributions/geopdf.m scripts/statistics/distributions/geornd.m |
diffstat | 4 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/statistics/distributions/geocdf.m +++ b/scripts/statistics/distributions/geocdf.m @@ -21,6 +21,9 @@ ## @deftypefn {Function File} {} geocdf (@var{x}, @var{p}) ## For each element of @var{x}, compute the cumulative distribution function ## (CDF) at @var{x} of the geometric distribution with parameter @var{p}. +## +## The geometric distribution models the number of failures (@var{x}-1) of a +## Bernoulli trial with probability @var{p} before the first success (@var{x}). ## @end deftypefn ## Author: KH <Kurt.Hornik@wu-wien.ac.at>
--- a/scripts/statistics/distributions/geoinv.m +++ b/scripts/statistics/distributions/geoinv.m @@ -21,6 +21,9 @@ ## @deftypefn {Function File} {} geoinv (@var{x}, @var{p}) ## For each element of @var{x}, compute the quantile (the inverse of ## the CDF) at @var{x} of the geometric distribution with parameter @var{p}. +## +## The geometric distribution models the number of failures (@var{x}-1) of a +## Bernoulli trial with probability @var{p} before the first success (@var{x}). ## @end deftypefn ## Author: KH <Kurt.Hornik@wu-wien.ac.at>
--- a/scripts/statistics/distributions/geopdf.m +++ b/scripts/statistics/distributions/geopdf.m @@ -21,6 +21,9 @@ ## @deftypefn {Function File} {} geopdf (@var{x}, @var{p}) ## For each element of @var{x}, compute the probability density function ## (PDF) at @var{x} of the geometric distribution with parameter @var{p}. +## +## The geometric distribution models the number of failures (@var{x}-1) of a +## Bernoulli trial with probability @var{p} before the first success (@var{x}). ## @end deftypefn ## Author: KH <Kurt.Hornik@wu-wien.ac.at>
--- a/scripts/statistics/distributions/geornd.m +++ b/scripts/statistics/distributions/geornd.m @@ -33,6 +33,9 @@ ## ## If no size arguments are given then the result matrix is the size of ## @var{p}. +## +## The geometric distribution models the number of failures (@var{x}-1) of a +## Bernoulli trial with probability @var{p} before the first success (@var{x}). ## @end deftypefn ## Author: KH <Kurt.Hornik@wu-wien.ac.at>