Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalHeavyHitter ¶
type LocalHeavyHitter struct {
Key interface{}
Count uint64
}
type Sketch ¶
type Sketch struct {
// contains filtered or unexported fields
}
func New ¶
New creates a new Topkapi Sketch with given error rate and confidence. Accuracy guarantees will be made in terms of a pair of user specified parameters, ε and δ, meaning that the error in answering a query is within a factor of ε with probability 1-δ
func NewTopK ¶
NewTopK creates a sketch suitable for finding TopK in a corpus of a given size, with an error rate of delta.
Click to show internal directories.
Click to hide internal directories.