mean_c: Mean and variance for a circular sample

Description Usage Arguments Value Examples

View source: R/some_helper_functions.R

Description

Mean and variance for a circular sample

Usage

1
2
3
mean_c(theta)

var_c(theta)

Arguments

theta

A vector of angles (in radians)

Value

The mean (rsp. variance) of the angle sample

Examples

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

BillVenables/WWRUtilities documentation built on Jan. 26, 2021, 10:18 p.m.