r - inahull() not returning a right answer -
when utilize alphahull library determining whether point belongs alpha-convex hull or not (inahull), i'm getting false points within alpha convex hull. i've tried different ways of handling info seems inahull doesn't work (or don't know how utilize ;) )
library(alphahull) data<-read.table("f2",h=t) plot(x=x$alpha,y=x$beta, log="y") now, select set of points creating subspace in plot
sp<-locator(30, type='p', pch=20) sp $x [1] 16.91776 24.41393 36.14421 46.46116 43.34893 27.61219 16.99911 $y [1] 31.74403 55.32414 68.87334 30.98970 15.31316 11.20075 15.14894 hull<-ahull(sp,alpha=1000) now, add together them plot check:
plot(hull, add=t) (so far looks good) now, if check these points within shape (which inside):
inahull(hull, c(30,40)) false the info i'm using can found in link: https://drive.google.com/file/d/0b8gpxql4u-b_c2rxnhngce5tovk/edit?usp=sharing
a problem using alphahull reported here: row ordering polygons
thanks time , help!
r
No comments:
Post a Comment