samsam.logprior.truncnormal#

samsam.logprior.truncnormal(x, mu=0.0, sig=1.0, a=0, b=inf)#

Truncated normal distribution with parameters (mu,sig,a,b).

Parameters:
xfloat

Value of the variable.

mufloat

Mean.

sigfloat

Standard-deviation.

afloat

Lower bound.

bfloat

Upper bound.

Returns:
lpfloat

Log-probability of x.