go-kdtree:KD树数据结构的Golang实现

时间:2021-05-30 15:07:31
【文件属性】:
文件名称:go-kdtree:KD树数据结构的Golang实现
文件大小:10KB
文件格式:ZIP
更新时间:2021-05-30 15:07:31
kd-tree nearest-neighbours Go KD树 KD树( )数据结构的Golang实现 入门 使用 go 工具在你的包树中安装包: go get github.com/hongshibao/go-kdtree 然后你可以在你的 Go 程序的导入部分使用它: import "github.com/hongshibao/go-kdtree" 包名是kdtree 。 基本示例 首先,您需要实现Point接口: type Point interface { // Return the total number of dimensions Dim () int // Return the value X_{dim}, dim is started from 0 GetValue ( dim int ) float64 // Return the distance between two points Dist
【文件预览】:
go-kdtree-master
----go.mod(252B)
----.github()
--------workflows()
----go.sum(2KB)
----kdtree.go(4KB)
----kdtree_test.go(3KB)
----LICENSE.md(11KB)
----README.md(3KB)
----.gitignore(6B)

网友评论