Matrix.MeanCols Method

procedure MeanCols(const result: TVec);

Calculates the mean value of each of the matrix columns.

#NameTypeDescription
1resultTVec

Result: stored in self (calling object)

Remarks:

Calculate the mean vale of each of the calling matrix columns 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.MeanCols(Res); // res = (-1.0, 5.5)
    //or
    Res := MeanCols(A);
end;
See Also: Matrix.MeanRows