Average
Compute the weighted mean of matrix/vector values.
double vector::Average(
|
Parameters
axis
[in] Axis. 0 — horizontal axis, 1 — vertical axis.
Return Value
Weighted mean: scalar or vector.
Note
The weight matrix/vector is associated with the main matrix/vector.
Example
matrixf matrix_a={{10,3,2},{1,8,12},{6,5,4},{7,11,9}};
|