你好,游客 登录 注册 搜索
背景:
阅读新闻

Libnabo 1.0.4 发布,K最近邻居算法库

[日期:2013-09-06] 来源:oschina.net  作者:Linux [字体:大 中 小]

libnabo 是一个快速为低维度空间提供K最近邻居算法库。它提供了一个干净的,传统的无标量类型无关的C ++模板API。

示例代码:

#include "nabo/nabo.h"
using namespace Nabo;
using namespace Eigen;
...
NNSearchF* nns = NNSearchF::createKDTreeLinearHeap(M);

const int K = 5;
VectorXi indices(K);
VectorXf dists2(K);

nns->knn(q, indices, dists2, K);

Libnabo 1.0.4 发布了,改进内容包括:

  • Adds Python bindings.
  • Fixes epsilon semantics to match the one of ANN.
  • Adds checks on query parameters.
  • Fixes compilation on Win32 and OS X.
  • Improved query performance with STL_HEAP when the number of points found is significantly smaller than the number of points requested

Libnabo 的下载地址:请点这里

linux
相关资讯       Libnabo 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款