Matrix.MeanRows Method

void MeanRows(TVec result)

Calculates the mean value of each of the matrix rows.

#NameTypeDescription
1resultTVecsource TVec

Result: stored in self (calling object)

Remarks:

Calculate the mean vale of each of the calling matrix rows and store the results in result vector. The Dew.Math.Matrix.Length and Dew.Math.Matrix.Complex properties of the result vector are adjusted automatically.

Examples
Matrix A;
Vector res;
A.SetIt(2,2,false,[1,5,
-3,6]);
A.MeanRows(res); // res = (3, 1.5)
See Also: Matrix.MeanCols