Length of the boundary of the alpha-convex hull

Share:

Description

This function calculates the length of the boundary of the α-convex hull of a given sample.

Usage

1
lengthahull(ahull.arcs)

Arguments

ahull.arcs

Output matrix of arcs returned by ahull.

Details

The function lengthahull is internally called by the function ahull.

Value

length

Length of the boundary of the α-convex hull.

See Also

ahull.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# Random sample in the unit square
x <- matrix(runif(100), nc = 2)
# Value of alpha
alpha <- 0.2
# alpha-convex hull
ahull.obj <- ahull(x, alpha = alpha)
# Length of the alpha-convex hull
ahull.obj$length

## End(Not run)