<< the_median Probas Stats weighted_mean >>

Scilab Scholar module for schools >> Probas Stats > weighted_deciles

weighted_deciles

weighted deciles

Calling sequence

d = weighted_deciles(v,n)

Arguments

v

vector of real numbers

n

vector of positive real numbers

d

vector of two real numbers

Description

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.

Examples

v=random_integer(200,0,20);
n=random_integer(200,1,10);
weighted_deciles(v,n)

See Also

<< the_median Probas Stats weighted_mean >>