weighted median

Function for calculating the weighted median
3,5K download
Aggiornato 23 feb 2009

Visualizza la licenza

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
Creato con R14
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Single-Rate Filters in Help Center e MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0