wmean

Version 1.0.0.0 (1,55 ko) par Adam Auton
Weighted Mean or Average
6,6K téléchargements
Mise à jour 26 mars 2007

Afficher la licence

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)

Citation pour cette source

Adam Auton (2024). wmean (https://www.mathworks.com/matlabcentral/fileexchange/14416-wmean), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R14SP3
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0