Mercurial > octave-nkf
comparison scripts/statistics/distributions/unidpdf.m @ 12495:4675ce154a55
Correctly refer to "discrete uniform" distribution in documentation.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Wed, 02 Mar 2011 20:38:27 -0800 |
parents | fd0a3ac60b0e |
children | 19b9f17d22af |
comparison
equal
deleted
inserted
replaced
12494:ce831dc80bdb | 12495:4675ce154a55 |
---|---|
17 ## <http://www.gnu.org/licenses/>. | 17 ## <http://www.gnu.org/licenses/>. |
18 | 18 |
19 ## -*- texinfo -*- | 19 ## -*- texinfo -*- |
20 ## @deftypefn {Function File} {} unidpdf (@var{x}, @var{v}) | 20 ## @deftypefn {Function File} {} unidpdf (@var{x}, @var{v}) |
21 ## For each element of @var{x}, compute the probability density function | 21 ## For each element of @var{x}, compute the probability density function |
22 ## (PDF) at @var{x} of a univariate discrete distribution which assumes | 22 ## (PDF) at @var{x} of a discrete uniform distribution which assumes |
23 ## the values in @var{v} with equal probability. | 23 ## the values in @var{v} with equal probability. |
24 ## If @var{v} is a scalar then @code{1/@var{v}} is the probability of a | |
25 ## single element. | |
24 ## @end deftypefn | 26 ## @end deftypefn |
25 | 27 |
26 function pdf = unidpdf (x, v) | 28 function pdf = unidpdf (x, v) |
27 | 29 |
28 if (nargin != 2) | 30 if (nargin != 2) |