dnSoftBoundUniformNormal - Soft-bounded uniform-normal distribution
| 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 tail(s). Can be specified directly, or computed from 'p'. | |
| Default : NULL | |
| p : | Probability (pass by const reference) |
| The probability of being within the uniform boundaries. Can be specified directly, or computed from 'sd'. | |
| Default : NULL | |
| boundary : | String (pass by value) |
| Which boundary should be soft? | |
| Default : both | |
| Options : both|upper|lower |
# Create a simple model (unclamped)
calib ~ dnSoftBoundUniformNormal( 13.6, 25, p=0.95, "upper" )
mymodel = model(calib)
# Create a move vector and a monitor vector
moves[1] = mvSlide(calib, delta=0.1, weight=1.0)
monitors[1] = mnScreen(calib, printgen=1000)
# Use MCMC to draw samples from the specified distribution
mymcmc = mcmc(mymodel, monitors, moves)
mymcmc.run(generations=200000)