Rev Language Reference

dnUniform - Uniform Distribution

Uniform distribution with lower and uppper bounds.

• 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.

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)