alphahull (version 2.2)

lengthahull: Length of the boundary of the alpha-convex hull

Description

This function calculates the length of the boundary of the \(\alpha\)-convex hull of a given sample.

Usage

lengthahull(ahull.arcs)

Arguments

ahull.arcs

Output matrix of arcs returned by ahull.

Value

length

Length of the boundary of the \(\alpha\)-convex hull.

Details

The function lengthahull is internally called by the function ahull.

See Also

ahull.

Examples

Run this code
# 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
# }

Run the code above in your browser using DataLab