Rev Language Reference

dnSoftBoundUniformNormal - Softbound Uniform Distribution with Normal distributed tails.

A softbound uniform distribution with normally distributed tails outside the interval of the uniform distribution.


dnSoftBoundUniformNormal(Real min, Real max, RealPos sd, Probability p)


min : Real (pass by const reference)
The min value of the uniform distribution.
max : Real (pass by const reference)
The max value of the uniform distribution.
sd : RealPos (pass by const reference)
The standard deviation of the normal distribution.
p : Probability (pass by const reference)
The probability of being within the uniform distribution.

Domain Type


The center piece of this distribution a uniform distribution defined between the given interval. A variable is drawn from that uniform distribution with probability p and with probability 1-p outside the interval. The probability density outside the interval is described by a normal distribution with standard deviation sd.


p ~ dnBeta(1.0,1.0)
x ~ dnBernoulli(p)
moves[1] = mvSlide(p, delta=0.1, weight=1.0)
monitors[1] = screenmonitor(printgen=1000, separator = "        ", speciation)
mymodel = model(p)
mymcmc = mcmc(mymodel, monitors, moves)

See Also