Working survey function, generates observed occurences according to distance function.