Uniform Discrete PDF
y = distfun_unidpdf ( x , N )
a matrix of doubles, the outcome, in the set {1,...,N}
a matrix of doubles, integer value, the integer upper bound (with N>=1)
a matrix of doubles, the density.
Computes the probability distribution function of the Uniform discrete distribution function.
Any scalar input argument is expanded to a matrix of doubles of the same size as the other input arguments.
The function definition is:
![\begin{eqnarray}
f(x,N) =
\left\{
\begin{array}{l}
0, \textrm{ if } x< 1, \\
\frac{1}{N}, \textrm{ if } x\in[1,N], \\
1, \textrm{ if } x> N.
\end{array}
\right.
\end{eqnarray}](./_LaTeX_distfun_unidpdf.xml_1.png)