This is an old version, view current version.
10.1 Suffix Marks Type of Function
The suffix is determined by the type of function according to the following table.
function | outcome | suffix |
---|---|---|
log probability mass function | discrete | _lpmf |
log probability density function | continuous | _lpdf |
log cumulative distribution function | any | _lcdf |
log complementary cumulative distribution function | any | _lccdf |
random number generator | any | _rng |
For example, normal_lpdf
is the log of the normal probability density function (pdf) and bernoulli_lpmf
is the log of the bernoulli probability mass function (pmf). The log of the corresponding cumulative distribution functions (cdf) use the same suffix, normal_lcdf
and bernoulli_lcdf
.