You are here: Symbol Reference > MtxVec Namespace > Classes > TMtx Class > public > TMtx.MeanRows Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtx.MeanRows Method

Calculates the mean value of each of the matrix rows.

Pascal
procedure MeanRows(const result: TVec); overload;

Calculate the mean vale of each of the calling matrix rows and store the results in result vector. The Length and TMtxVec.ComplexComplexproperties of the result vector are adjusted automatically.

var A: TMtx; res: TVec; begin A := TMtx.Create; res := TVec.Create; try A.SetIt(2,2,false,[1,5, -3,6]); A.MeanRows(res); // res = (3, 1.5) finally A.Free; res.Free; end; end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!