one dim logistic regression