Navigation

Operators and Keywords

Function List:

C++ API

Function File: unidpdf (x, n)

For each element of x, compute the probability density function (PDF) at x of a discrete uniform distribution which assumes the integer values 1–n with equal probability.

Warning: The underlying implementation uses the double class and will only be accurate for nbitmax (2^{53} - 1 on IEEE-754 compatible systems).

Package: octave