implement average normalized cosine similarity to distinguish important classes of population states