Sub-ensembles that walk together, as many pedestrians do in twos and
threes (Moussaïd et al. 2010): members are taken in index order, and an
ungrouped member starts a group with probability q whose size is drawn
from sizes, taking the next members. With s the mean size, a start
share q = share / (s - share (s - 1)) puts share of the members in
groups on average, since q s / (q s + 1 - q) of them are grouped.
Sub-ensembles that walk together, as many pedestrians do in twos and threes (Moussaïd et al. 2010): members are taken in index order, and an ungrouped member starts a group with probability
qwhose size is drawn fromsizes, taking the next members. Withsthe mean size, a start shareq = share / (s - share (s - 1))putsshareof the members in groups on average, sinceq s / (q s + 1 - q)of them are grouped.