Bounded variable logp

Thanks for the answer, @junpenglao this is very helpful.