Generalized logistic and inverse-logistic transformations.
logit(x, min = 0, max = 1)
ilogit(x, min = 0, max = 1)
The logit or inverse-logit transoformation.
The generalized logistic transformation is
logit(x) = log(p/(1-p)), p = (x-min)/(max - min),
and its inverse is
ilogit(x) = min + (max-min)/(1+exp(-x).