You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > Matrix.MeanCols Method
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.MeanCols Method

Calculates the mean value of each of the matrix columns.

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

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

var A: Matrix; res: Vector; begin A.SetIt(2,2,false,[1,5, -3,6]); A.MeanCols(Res); // res = (-1.0, 5.5) //or Res := MeanCols(A); end;
Examples on GitHub
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!