logistic function

double logistic (double p)

Computes the logistic function. see: http://en.wikipedia.org/wiki/Logistic

Implementation

double logistic(double p) => 1.0 / (exp(-p) + 1.0);