weightedVariance.Rd
the weightedVariance function
weightedVariance(x, y = NULL, w)
x is a data vector
default to NULL, if given it is ignored
weight vector, values should be between 0 and 1
numeric weighted variance value for x
numeric
x = rnorm(100) w = runif(100) weightedVariance(x,w = w) #> [1] 0.7683876