When you are among a large group of
people (Usually
people you don't know, like at
school or a train station or a store) and suddenly the air becomes occupied by a nasty odour.
The act of "smell discrimination" comes into play when you decide by the people who surround you and their physical appearance/demeanour, who it is that created the disgusting smell.