procedure MeanRows(const result: TVec);
Calculates the mean value of each of the matrix rows.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | result | 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 Matrix.Length and Matrix.Complex properties of the result vector are adjusted automatically.
Examples
var A: Matrix;
res: Vector;
begin
A.SetIt(2,2,false,[1,5,
-3,6]);
A.MeanRows(res); // res = (3, 1.5)
end;
See Also: Matrix.MeanCols