weighted standard deviation (standard deviation for frequency distribution)
s = weighted_std_deviation(v,n)
vecor of real numbers
vector of positive real numbers
real number
weighted_std_deviation(v,n)
returns the standard deviation of the vector of numbers
v
weighted by the vector of numbers
n
with v
and n
of the same
dimension and n
a vector of positive numbers or
zeros but not all zeros