Rev Language Reference


dnPoisson - Poisson Distribution

A Poisson distribution defines probabilities for natural numbers. It is defined as the number of exponentially distributed events in a given interval.

Aliases

  • dnPois

Usage

dnPoisson(RealPos lambda)

Arguments

lambda : RealPos (pass by const reference)
The rate (rate = 1/mean) parameter.

Domain Type

Example

l ~ dnUniform(0.0,100.0)
x ~ dnPoisson(l)
x.clamp(10)
moves[1] = mvSlide(l, delta=0.1, weight=1.0)
monitors[1] = mnScreen(printgen=1000, separator = "        ", l)
mymodel = model(l)
mymcmc = mcmc(mymodel, monitors, moves)
mymcmc.burnin(generations=20000,tuningInterval=100)
mymcmc.run(generations=200000)

See Also