Weighted circular parameters
Usage
weighted_circ_mean(x, w, na.rm = FALSE)
weighted_circ_mean2(x, w, na.rm = FALSE)
weighted_circ_sd(x, w, na.rm = FALSE)
weighted_circ_rho(x, w, na.rm = FALSE)
Functions
weighted_circ_mean()
: weighted circular meanweighted_circ_mean2()
: an alternative way to compute weighted circular mean (the results are the same)weighted_circ_sd()
: weighted circular SDweighted_circ_rho()
: weighted mean resultant length
Examples
x <- rnorm(1000, 0, 0.5)
w <- runif(1000, 0, 1)
weighted.mean(x, w)
#> [1] -0.004316137
weighted_circ_mean(x, w)
#> [1] -0.004556117