weighted deciles
d = weighted_deciles(v,n)
vector of real numbers
vector of positive real numbers
vector of two real numbers
weighted_deciles(v)
returns the first and ninth deciles of the components
of the vector v
weighted by the vector of numbers n
with v
and
n
of the same dimension and n
is a vector of positive real numbers or zeros but not all zeros.
The components of the vector
v
do not have to be arranged (sorted) in increasing order.