Documentation ¶
Overview ¶
TODO:
> Write unit tests
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Neighbor ¶
A struct representing a neighbor, with a Distance to its relation.
type Neighbors ¶
type Neighbors []*Neighbor
A slice of Neighbor objects.
func FindNearest ¶
Find the nearest, up to <limit>, Neighbors for the given subject.
func (Neighbors) Len ¶
The number of Neighbor object in the current slice.
func (Neighbors) Less ¶
Determine if the Neighbor at offset i has a lesser Neighbor.Distance than Neighbor at offset j.
Click to show internal directories.
Click to hide internal directories.