Measuring the distribution of galaxies between haloes