weighted median
For n numbers x_1,...,x_n with positive weights w_1,...,w_n,
(sum of all weights equal to one) the weighted median is defined as
the element x_k, such that:
--
) w_i <= 1/2
--
x_i < x_k
and
--
) w_i <= 1/2
--
x_i > x_k
Input: D ... matrix of observed values
W ... matrix of weights, W = ( w_ij )
Output: wMed ... weighted median
Cita come
Sven Haase (2024). weighted median (https://www.mathworks.com/matlabcentral/fileexchange/23077-weighted-median), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Riconoscimenti
Ispirato: Weighted median (from data & sds) & its standard deviation
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 |