View source: R/some_helper_functions.R
mean_c | R Documentation |
Mean and variance for a circular sample
mean_c(theta) var_c(theta)
theta |
A vector of angles (in radians) |
The mean (rsp. variance) of the angle sample
th <- 2*base::pi*(rbeta(2000, 1.5, 1.5) - 0.5) c(mn = mean_c(th), va = var_c(th)) rm(th)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.