Logistic detection function
Arguments
- distance
- perpendicular distance vector 
- theta
- scale parameters 
- w
- scale covariate matrix 
- std
- if TRUE uses scale=1 - The routine returns a vector of probabilities that the observation were detected given they were at the specified distance and assuming that g(0)=1 (ie a standard line transect detection function).