areaahull {alphahull} | R Documentation |
This function calculates the area of the \alpha
-convex hull of a sample of points.
areaahull(x, timeout = 5)
x |
Object of class |
timeout |
A numeric specifying the maximum number of seconds the expression is allowed to run before being interrupted by the timeout. |
area |
Area of the |
## Not run:
# Random sample in the unit square
x <- matrix(runif(500), nc = 2)
# Value of alpha
alpha <- 1
# alpha-convex hull
ahull.obj <- ahull(x, alpha = alpha)
# Area of the alpha-convex hull
areaahull(ahull.obj)
## End(Not run)