logistic function

Logistic transform from x to p and logit transform from p to x