Documentation ¶
Overview ¶
f0 is an implementation of the CVM algorithm for the distinct elements problem.
The CVM algorithm is best suited for large datasets where sorting unique values would require more than available memory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Estimate ¶
func Estimate[T comparable](source []T, e, d float64) float64
Estimate uses the CVM algorithm to calculate the number of unique item in an array. e (epsilon) represents acceptable relative error d (delta) represents the probability of failure for the algorithm to produce an estimation within the specific e-bound.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.