标签: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://stackoverflow.com/questions/24373722/inahull-not-returning-a-right-answer
标签:r package alphahull position points
原文地址:http://matrix6ro.blog.51cto.com/1746429/1790866