Documentation ¶
Overview ¶
Package neighbor holds structs to describe the results of FindNearest, which performs nearest neighbor checks against a provided subject and options.
Each Neighbor holds a Neighbor.Name, which identifies it, and a Neighbor.Distance, describing the distance between the resulting Neighbor and the original subject.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Neighbor ¶
Neighbor is a struct representing a neighbor, with a Distance to its relation and a Name to use as identification.
type Neighbors ¶
type Neighbors []*Neighbor
Neighbors is a slice of Neighbor objects.
func FindNearest ¶
FindNearest returns the nearest, up to the given limit, Neighbors for the given subject.
Click to show internal directories.
Click to hide internal directories.