topn()
URL: llms-txt#topn()
===== PAGE: https://docs.tigerdata.com/api/_hyperfunctions/freq_agg/intro/ =====
Get the most common elements of a set and their relative frequency. The estimation uses the [SpaceSaving][spacingsaving-algorithm] algorithm.
This group of functions contains two aggregate functions, which let you set the cutoff for keeping track of a value in different ways. freq_agg allows you to specify a minimum frequency, and mcv_agg allows you to specify the target number of values to keep.
To estimate the absolute number of times a value appears, use [count_min_sketch][count_min_sketch].
===== PAGE: https://docs.tigerdata.com/api/_hyperfunctions/freq_agg/min_frequency/ =====