Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mean_c

Mean and variance for a circular sample


Description

Mean and variance for a circular sample

Usage

mean_c(theta)

var_c(theta)

Arguments

theta

A vector of angles (in radians)

Value

The mean (rsp. variance) of the angle sample

Examples

th <- 2*base::pi*(rbeta(2000, 1.5, 1.5) - 0.5)
c(mn = mean_c(th), va = var_c(th))
rm(th)

MASSExtra

Some 'MASS' Enhancements

v1.1.2
GPL-2 | GPL-3
Authors
Bill Venables
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.