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.

      Parameters

      • ensemble: IEnsemble

        The ensemble.

      • spec: IGroupsSpec

        The grouped share in [0, 1] and the group sizes allowed, each at least 2.

      Returns IAutoMovieMotionHumanEnsemble.IGroup[]

      The groups, in index order; members not in one walk alone.

      When the share lies outside [0, 1] or a size is below 2.