Gradient of the non-normalised pdf of distances or the detection function for the distances.
Useful links