pasteur.hierarchy.get_group_size

Contents

pasteur.hierarchy.get_group_size#

pasteur.hierarchy.get_group_size(counts, g)[source]#

Returns the sum of the sizes of the buckets included in set g.

counts is a list with the size of each bucket. group_sizes is a dynamic programming cache, which is used to save the size of each group.

Return type:

float