码迷,mamicode.com
首页 > 其他好文 > 详细

bug of Alphahull in R package

时间:2016-06-20 00:56:25      阅读:166      评论:0      收藏:0      [点我收藏+]

标签:r   package   alphahull   position   points   

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

标签:r   package   alphahull   position   points   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!