annoy

package
v0.0.0-...-5e67677 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNode

func NewNode(dataItems []*dataItem) *node

Types

type Index

type Index interface {
	FindSimilarById(id int64, k int, bucketScale float64) (neighbours []int64, err error)
	FindSimilarByVector(v []float64, k int, bucketScale float64) (neighbours []int64, err error)
	SortCandidates(idToDistance map[int64]float64) ([]int64, error)
}

func NewIndex

func NewIndex(rawData [][]float64, size int, numberOfTrees int, k int) (Index, error)

Jump to

Keyboard shortcuts

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