Error with Delaunay4Points: subscript out of bound

百般思念 提交于 2019-12-11 09:07:24

问题


I have this matrix:

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 ))

And then:

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

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

Is it a bug ? Unfortunately there's no Github repo to fill an issue.

I've compared with another tool and the result should be:

[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]

来源:https://stackoverflow.com/questions/50175867/error-with-delaunay4points-subscript-out-of-bound

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!