Learn R Programming

swaRm (version 0.6.0)

sphericity: Sphericity

Description

Given a set of locations, this function approximates the sphericity of the set by calculating the bivariate 95 the set.

Usage

sphericity(x, y)

Value

A single numeric value corresponding to the ratio between the minor and major axis of the bivariate 95

close to 1 indicates that the set is approximately circular; a value close to 0 indicates that the set is strongly elongated.

Arguments

x

A vector of x coordinates.

y

A vector of y coordinates.

Author

Simon Garnier, garnier@njit.edu

See Also

stretch

Examples

Run this code
x <- rnorm(25)
y <- rnorm(25, sd = 3)
sphericity(x, y)

Run the code above in your browser using DataLab