Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HyperLogLog ¶
type HyperLogLog struct {
// contains filtered or unexported fields
}
HyperLogLog is a cardinality estimator
func New ¶
func New(err float64) (*HyperLogLog, error)
New creates a new HLL estimator with a given precision (error). The `good` value for error is (0.01 - 0.0001) Smaller values will case more memory usage
func (*HyperLogLog) Add ¶
func (h *HyperLogLog) Add(val string)
Add adds a new []byte value to the HLL
Click to show internal directories.
Click to hide internal directories.