基于gpu的地表近邻搜索

vincenty-cuda-nns的Python项目详细描述


使用CUDA进行Vincenty最近邻搜索

运行在gpu上并使用Vincenty's formula

应用程序

近邻搜索是位置数据分析的关键组成部分

  • 最近邻索引基于测量点之间的距离
  • 模式分析算法(global moran's i,getis ord general g)和模式分析算法(anselin local moran's i,getis ord gi*)使用k-nn方法定义邻域都基于点之间的测量距离

使用Vincenty公式,可以使用地理坐标对任何位置执行位置分析

Presentation slides

要求

  • 支持CUDA的GPU,具有计算能力2.0或更高版本,并带有高达数据的NVIDIA驱动程序。
  • CUDA toolkit

安装

pip install vincenty-cuda-nns

用法示例

importgeopandasasgpdfromvincenty_cuda_nnsimportCudaTreedf=gpd.read_file('points.geojson')# data is array of points like [longitude, latitude]data=np.stack(df['geometry']).astype(np.float32)# build tree for the datacuda_tree=CudaTree(data,leaf_size=4)# query over the tree for nearest neighbor (including itself)distances,indices=cuda_tree.query(n_neighbors=2)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java将Int值传递给另一个类   在使用Sdin(或非交互式)输入| Java时调试奇怪的输入错误   java返回一个文本字符串作为响应struts2   java为什么我们不能在声明局部变量之前初始化它呢?   java从现有XML中读取值并将其填充到Json中   java Spring Boot+Maven:找不到repositoryFactoryBean   java使用regex表示“W o.Rd”。replaceAll(“单词”、“替换”)   java Sub resorce在Jersey REST API框架中不起作用   java在组件启动时,当所述报告存储在Sharepoint中时,是否可以加载预格式化的WebDataRocks报告?   java并发更新列表的最佳方法   servlets Java web应用程序对象调度   应用程序在点击按钮时崩溃,Android Studio(Java)   java如何为掷骰子游戏调用另一个类中的方法?