double sigmoid(double x)
Returns the value of the asymetric sigmoid function on x.
The function is 1/(1+exp(-x))