Learn R Programming

rsdepth (version 0.1-4)

inflate: inflates a convex polygon

Description

Inflates a convex polygon

Usage

inflate(x, y=NULL, factor=2, ...)

Arguments

x
The data as a matrix, data frame or list. If it is a matrix or data frame, then each row is viewed as one bivariate observation. If it is a list, all components must be numerical vectors of equal length (coordinates of observations).
y
The data as a matrix, data frame or list. If it is a matrix or data frame, then each row is viewed as one bivariate observation. If it is a list, all components must be numerical vectors of equal length (coordinates of observations).
factor
An integer by default set to 2.
...
For future use.

Value

  • Returns nothing.

concept

inflates a convex polygon

Details

In dimension 2, inflates a convex polygon

References

N. Mustafa, S. Ray, and M. Shabbir, Statistical Data Depth of Pointsets in the Plane,in prep..

See Also

convexhull

Examples

Run this code
## calculation of centroid of a random pointset
z = matrix(rnorm(24),nc=2)
x = convexhull(z)
y= inflate(x)

Run the code above in your browser using DataLab