Weighted median (fast MEX)

Versión 1.0.0 (36 KB) por Eran
calculating the weighted median or weighted median + weighted std using a fast MEX functions.
3 Descargas
Actualizado 11 oct 2025

Ver licencia

Fast MEX functions for calculating the weighted median of an array over some dimension.
--------------------------------------------------
These functions are part of AstroPack/MAATv2:
For updates and revision download AstroPack.
--------------------------------------------------
Credit: Eran Ofek
--------------------------------------------------
Compilied fort linux.
Compilation:
mex -O -R2018a CXXFLAGS="\$CXXFLAGS -fopenmp -O3 -march=native" LDFLAGS="\$LDFLAGS -fopenmp" wmedian_mex.cpp
mex -O -R2018a CXXFLAGS="\$CXXFLAGS -fopenmp -O3 -march=native" LDFLAGS="\$LDFLAGS -fopenmp" wmedianStd_mex.cpp
--------------------------------------------------
Examples (see help files):
[M]=tools.math.stat.mex.wmedian_mex(R,W)
[M]=tools.math.stat.mex.wmedian_mex(R,W,2)
[M,S]=tools.math.stat.mex.wmedianStd_mex(R,W)
[M,S]=tools.math.stat.mex.wmedianStd_mex(R,W,1)

Citar como

Eran (2026). Weighted median (fast MEX) (https://es.mathworks.com/matlabcentral/fileexchange/182276-weighted-median-fast-mex), MATLAB Central File Exchange. Recuperado .

https://ui.adsabs.harvard.edu/abs/2014ascl.soft07005O/abstract

Compatibilidad con la versión de MATLAB
Se creó con R2024a
Compatible con cualquier versión desde R2024a hasta R2025b
Compatibilidad con las plataformas
Windows macOS Linux
Etiquetas Añadir etiquetas

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0