Documentation
¶
Index ¶
- func Compare(a, b uint64) int
- func Fingerprint(v Vector) uint64
- func ShingleBytes(a [][]byte, k int) [][]byte
- func ShingleStrings(a []string, k int) []string
- func Simhash(fs Features) uint64
- func Words(text string) []string
- type BytesSlice
- type Feature
- type Features
- type RuneSlice
- type ShinglingRunes
- type ShinglingStrings
- type StringSlice
- type Vector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fingerprint ¶
func ShingleBytes ¶
------------------------------------------------------------------------------
func ShingleStrings ¶
Types ¶
type BytesSlice ¶
type BytesSlice [][]byte
BytesSlice
func (BytesSlice) Bytes ¶
func (p BytesSlice) Bytes(i int) []byte
func (BytesSlice) Len ¶
func (p BytesSlice) Len() int
func (BytesSlice) Weight ¶
func (p BytesSlice) Weight(i int) int
type ShinglingRunes ¶
------------------------------------------------------------------------------
func (ShinglingRunes) Bytes ¶
func (p ShinglingRunes) Bytes(i int) []byte
func (ShinglingRunes) Len ¶
func (p ShinglingRunes) Len() int
func (ShinglingRunes) Weight ¶
func (p ShinglingRunes) Weight(i int) int
type ShinglingStrings ¶
------------------------------------------------------------------------------
func (ShinglingStrings) Bytes ¶
func (p ShinglingStrings) Bytes(i int) []byte
func (ShinglingStrings) Len ¶
func (p ShinglingStrings) Len() int
func (ShinglingStrings) Weight ¶
func (p ShinglingStrings) Weight(i int) int
type StringSlice ¶
type StringSlice []string
StringSlice
func (StringSlice) Bytes ¶
func (p StringSlice) Bytes(i int) []byte
func (StringSlice) Len ¶
func (p StringSlice) Len() int
func (StringSlice) Weight ¶
func (p StringSlice) Weight(i int) int
Click to show internal directories.
Click to hide internal directories.