logistic function with D=1.7
logistic(x, D = 1.7)
x
vector
D
= 1.7
This function calculates p=1/(1+exp(-D*x))
vector of the size of x