Documentation
¶
Overview ¶
Package sketching provides sequence sketching and distance calculation functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Containment ¶
Containment returns a Jaccard-like similarity for the containment of a in b.
Types ¶
type Index ¶
type Index[T constraints.Unsigned] struct { // contains filtered or unexported fields }
Index allows quick lookups for sketches.
func NewIndex ¶
func NewIndex[T constraints.Unsigned](scale int) *Index[T]
NewIndex returns a new index that stores 1/scale of hashes.
Notes ¶
Bugs ¶
Consider making put receive a slice.
Click to show internal directories.
Click to hide internal directories.