knn

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package knn implements k-nearest neighbors search algorithm on a K-D tree node.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KNN

func KNN(n *node.N, p vector.V, k int) []*node.N

KNN returns the k-nearest neighbors of a given node. Nodes are returned in sorted order, with nodes closest to the input vector at the head of the slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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