Clip value to a given range
Clip xxx to the interval [l,u][l, u][l,u]. This is useful to enforce box constraints.
inbounds(x, l, u)
x
l
u
l if x < l, u if x > u else x.
Olaf Mersmann olafm@statistik.tu-dortmund.de