1For simplicity, we assume that all the samples contain the same number of objects. It is easy to generalize to the case in which different samples have different objects.