zero#

ApproximateTopK.zero(log_capacity: int)[source]#

Create an empty frequent-items sketch.

Parameters:

log_capacity (int) – The base-2 logarithm of the sketch’s capacity, passed to the sketch as lg_max_k.

Returns:

An empty frequent_strings_sketch.