Documentation
¶
Overview ¶
Package mash provides sequence MinHashing and Mash distance calculation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Distance ¶ added in v1.4.0
Distance returns the Mash distance between two sequences, using n hashes and k-long subsequences.
func FromJaccard ¶
FromJaccard returns the Mash distance given a Jaccard similarity.
Types ¶
type Masher ¶
type Masher struct {
// contains filtered or unexported fields
}
A Masher min-hashes sequences and calculates Mash distances.
func (*Masher) Distance ¶
Distance returns the Mash distance between this Masher and another one.
Both Mashers need to have the same k's and seeds.
func (*Masher) MarshalJSON ¶ added in v1.4.0
MarshalJSON implements the JSONMarshaler interface.
func (*Masher) UnmarshalJSON ¶ added in v1.4.0
UnmarshalJSON implements the JSONUnmarshaler interface.
Click to show internal directories.
Click to hide internal directories.