首页 > 其他 > 详细

bug of Alphahull in R package

时间:2016-06-20 00:54:08      阅读:215      评论:0      收藏:0      [点我收藏+]

I have define an area with alphahull


but I can‘t get the right point in the area.


for example:



> z.def$x
          [,1]            [,2]
[1,]     13.61808        26.67013
[2,]     12.82682        23.04007
[3,]     12.96585        19.08577
[4,]     14.64468        18.93133
[5,]     18.81814        22.18428
[6,]     18.66133        28.07588

> for (x in seq(97700, 97801, 20)) {
    for (y in seq(1000000,1000501, 50)) {
        if (inahull(z.def, c(x,y))) {
            print (c(x,y))
        }
    }
}

This will print many numbers.

 

references:

http://grokbase.com/t/r/r-help/14av5ynaey/r-inahull-from-package-alphahull-not-working-when-used-with-lapply

http://stackoverflow.com/questions/24373722/inahull-not-returning-a-right-answer

  


bug of Alphahull in R package

原文:http://matrix6ro.blog.51cto.com/1746429/1790866

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!