A method for evaluating the degree of spatial and temporal avoidance in spatial point patterns