Analysis of a model of group territoriality based on the resource dispersion hypothesis