A confusion index for measuring separation and clustering