powered by
Weighted circular parameters
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)
weighted_circ_mean2(x, w, na.rm = FALSE)
weighted_circ_sd(x, w, na.rm = FALSE)
weighted_circ_rho(x, w, na.rm = FALSE)
weighted mean of values in the vector
vector of values (in radians)
vector of weights
a logical value indicating whether NA values should be removed before the computation proceeds
weighted_circ_mean(): weighted circular mean
weighted_circ_mean()
weighted_circ_mean2(): an alternative way to compute weighted circular mean (the results are the same)
weighted_circ_mean2()
weighted_circ_sd(): weighted circular SD
weighted_circ_sd()
weighted_circ_rho(): weighted mean resultant length
weighted_circ_rho()
x <- rnorm(1000, 0, 0.5) w <- runif(1000, 0, 1) weighted.mean(x, w) weighted_circ_mean(x, w)
Run the code above in your browser using DataLab