types

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket uint64

type Buckets

type Buckets []Bucket

type Signature

type Signature []SignatureEntry

func (Signature) Buckets

func (s Signature) Buckets() Buckets

this function generate merkle tree of the signature to create buckets

func (Signature) FindMin

func (s Signature) FindMin(o Signature) Signature

func (Signature) IsEmpty

func (s Signature) IsEmpty() bool

type SignatureEntry

type SignatureEntry uint64

type Signatures

type Signatures []Signature

type Similarities

type Similarities map[VectorID]float64

func (Similarities) Top

func (s Similarities) Top(count int) []VectorID

type Vector

type Vector map[VectorID]float64

type VectorID

type VectorID string

func (VectorID) String

func (v VectorID) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL