areaahull | R Documentation |
This function calculates the area of the α-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 α-convex hull. If the area cannot be computed, the output will be NA with a warning. |
ahull
.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.