R: Area of the alpha-convex hull

areaahull {alphahull} | R Documentation

## Area of the alpha-convex hull

### Description

This function calculates the area of the α-convex hull of a sample of points.

### Usage

    areaahull(x, timeout = 5)

### Arguments

`x` | Object of class `"ahull"`.
`timeout` | A numeric specifying the maximum number of seconds the expression is allowed to run before being interrupted by the timeout.

### Value

`area` | Area of the α-convex hull. If the area cannot be computed, the output will be NA with a warning.

### See Also

`ahull`.

### Examples

    ## 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)

[Package alphahull version 2.2 Index]