Nonparameteric estimation of spatial segregation in a