arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1912.09585astro-ph.IM
收藏

GriSPy:用于固定半径最近邻搜索的Python包

GriSPy: A Python package for Fixed-Radius Nearest Neighbors Search

Martin Chalela, Emanuel Sillero, Luis Pereyra, Mario Alejandro García, Juan B. Cabral, Marcelo Lares, Manuel Merchán

摘要:

我们提出了一种新的规则网格搜索算法,用于快速固定半径最近邻查找。该模块索引规则网格中的一组k维点,具有可选的周期性条件,为最近邻查询提供了一种快速方法。在第一部分中,我们提供了三种类型的查询:$bubble$、$shell$和$nth-nearest$ ;以及天文学中感兴趣的三种不同度量:$euclidean$和不同精度的球坐标中的两个距离函数,$haversine$和$Vincenty$ ;以及提供自定义距离函数的可能性。这个软件包的结果特别有用的大型数据集,其中蛮力搜索变得不切实际。

英文摘要:

We present a new regular grid search algorithm for quick fixed-radius nearest-neighbor lookup developed in Python. This module indexes a set of k-dimensional points in a regular grid, with optional periodic conditions, providing a fast approach for nearest neighbors queries. In this first installment we provide three types of queries: $bubble$, $shell$ and the $nth-nearest$; as well as three different metrics of interest in astronomy: the $euclidean$ and two distance functions in spherical coordinates of varying precision, $haversine$ and $Vincenty$; and the possibility of providing a custom distance function. This package results particularly useful for large datasets where a brute-force search turns impractical.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑