AutoMovie API
    Preparing search index...

    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. Input spec of HumanEnsemble.groups. The grouped share in [0, 1] and the group sizes allowed, each at least 2.

    type IGroupsSpec = {
        share: number;
        sizes: readonly number[];
    }
    Index
    share: number

    Expected share of ensemble members assigned to groups, in [0, 1]; a random grouping need not realise the exact fraction.

    sizes: readonly number[]

    Allowed group member counts, each at least 2; the grouping procedure draws among these sizes.