sgb: threshold-based diversity