-->

与Delaunay4Points错误:下标越界(Error with Delaunay4Points

2019-09-28 22:19发布

我有这样的矩阵:

v <- rbind(  c( -5, -5,  16 )  
           , c( -5,  8,   3 )  
           , c(  4, -1,   3 )  
           , c(  4, -5,   7 )  
           , c(  4, -1, -10 )  
           , c(  4, -5, -10 )  
           , c( -5,  8, -10 )  
           , c( -5, -5, -10 ))

接着:

> library(DatabionicSwarm)
Delaunay4Points(v, IsToroid = FALSE)

Error in UniqDelaunay[Uniq2DataInd, Uniq2DataInd] : 
  subscript out of bounds

它是一个错误吗? 不幸的是有没有GitHub库填补的问题。

我已经与其他工具相比,其结果应该是:

[0,1,0,1,0,0,0,1]
[1,0,1,1,0,0,1,1]
[0,1,0,1,1,1,1,1]
[1,1,1,0,0,1,0,1]
[0,0,1,0,0,1,1,1]
[0,0,1,1,1,0,0,1]
[0,1,1,0,1,0,0,1]
[1,1,1,1,1,1,1,0]
文章来源: Error with Delaunay4Points: subscript out of bound
标签: r delaunay