weighted_circ_mean.Rd
Weighted circular parameters
weighted_circ_mean(x, w, na.rm = F)
weighted_circ_mean2(x, w, na.rm = F)
weighted_circ_sd(x, w, na.rm = F)
weighted_circ_rho(x, w, na.rm = F)
vector of values (in radians)
vector of weights
a logical value indicating whether NA values should be removed before the computation proceeds
weighted mean of values in the vector
weighted_circ_mean()
: weighted circular mean
weighted_circ_mean2()
: an alternative way to compute weighted circular mean (the results are the same)
weighted_circ_sd()
: weighted circular SD
weighted_circ_rho()
: weighted mean resultant length
x <- rnorm(1000,0, 0.5)
w <- runif(1000, 0, 1)
weighted.mean(x, w)
#> [1] -0.03989039
weighted_circ_mean(x, w)
#> [1] -0.04164028