Rev Language Reference


dnUniform - Uniform Distribution

Uniform distribution with lower and uppper bounds.

Aliases

  • dnUnif

Usage

dnUniform(Real lower, Real upper)

Arguments

lower : Real (pass by const reference)
The lower bound.
upper : Real (pass by const reference)
The upper bound.

Domain Type

Details

The uniform distribution has density, f(x) = 1/(b-a), where b is the upper bound and a is the lower bound.

Example

# set the lower bound
a <- -2.5
# set the upper bound
b <- -3.9
# create a stochastic node with a uniform prior
u ~ dnUniform(a, b)