For vectors, WMEAN(X,W) is the weighted mean value of the elements in X using non-negative weights W. For matrices, WMEAN(X,W) is a row vector containing the weighted mean value of each column. For N-D arrays, WMEAN(X,W) is the weighted mean value of the elements along the first non-singleton dimension of X.
Class support for inputs X and W:
float: double, single
Example:
x = rand(5,2);
w = rand(5,2);
wmean(x,w)
Citar como
Adam Auton (2024). wmean (https://www.mathworks.com/matlabcentral/fileexchange/14416-wmean), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Language Fundamentals > Data Types > Time Series >
- MATLAB > Data Import and Analysis > Descriptive Statistics >
Etiquetas
Agradecimientos
Inspiración para: Weighted Data Binning [wbin], Spatial mapping of Gutenberg-Richters b-value
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |