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)
引用格式
Adam Auton (2024). wmean (https://www.mathworks.com/matlabcentral/fileexchange/14416-wmean), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R14SP3
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Language Fundamentals > Data Types > Time Series >
- MATLAB > Data Import and Analysis > Descriptive Statistics >
在 Help Center 和 MATLAB Answers 中查找有关 Time Series 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |