Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gnidan/knearest
Go package for getting the k-nearest (or largest, whatever) values in a list
https://github.com/gnidan/knearest
Last synced: 23 days ago
JSON representation
Go package for getting the k-nearest (or largest, whatever) values in a list
- Host: GitHub
- URL: https://github.com/gnidan/knearest
- Owner: gnidan
- Created: 2014-11-08T16:09:03.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-08T16:18:05.000Z (about 10 years ago)
- Last Synced: 2024-10-07T18:41:00.548Z (about 1 month ago)
- Language: Go
- Size: 922 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
knearest
========Go package for finding the k-nearest (or largest/smallest) values in a list.
Usage:
```go
kNearestStorable := knearest.NewKNearestStorable(11)
for _, comparison := range values {
kNearestStorable.Add(comparison)
}kNearest := kNearestStorable.Get()
```