circ.mean {CircStats}R Documentation

Mean Direction

Description

Returns the mean direction of a vector of circular data.

Usage

circ.mean(x)

Arguments

x

vector of data points measured in radians.

Details

Each observation is treated as a unit vector, or point on the unit circle. The resultant vector of the observations is found, and the direction of the resultant vector is returned.

Value

Returns the mean direction of the data.

References

Jammalamadaka, S. Rao and SenGupta, A. (2001). Topics in Circular Statistics, Section 1.3, World Scientific Press, Singapore.

See Also

circ.disp, circ.summary, est.kappa, est.rho.

Examples

# Compute the mean direction of a random sample of observations.
data <- runif(50, 0, pi)
mean.dir <- circ.mean(data)

[Package CircStats version 0.2-6 Index]