weighted_circ_mean {circhelp}R Documentation

Weighted circular parameters

Description

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)

Arguments

x

vector of values (in radians)

w

vector of weights

na.rm

a logical value indicating whether NA values should be removed before the computation proceeds

Value

weighted mean of values in the vector

Functions

Examples

x <- rnorm(1000, 0, 0.5)
w <- runif(1000, 0, 1)
weighted.mean(x, w)
weighted_circ_mean(x, w)


[Package circhelp version 1.1 Index]