<< weighted_median Probas Stats weighted_std_deviation >>

Scilab Scholar module for schools >> Probas Stats > weighted_quartiles

weighted_quartiles

weighted quartiles

Calling sequence

q = weighted_quartiles(v,n)

Arguments

v

vector of real numbers

n

vector of positive real numbers

q

vector of two real numbers

Description

quartiles_ponderes(v) returns the first and third quartiles 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(20,0,20);
n=random_integer(20,1,10);
weighted_quartiles(v,n)

See Also

<< weighted_median Probas Stats weighted_std_deviation >>