Dew MtxVec NET
TMtx.MeanCols Method
Summary
Calculates the mean value of each of the matrix columns.

Class
TMtx

Declaration
Procedure MeanCols(Result: TVec);

Description
Calculate the mean vale of each of the calling matrix columns and store the results in Result vector. The TMtxVec.Length and TMtxVec.Complex properties of the Result vector are adjusted automatically.
 See Also 
MeanRows 

Example 1

var A: TMtx; res: TVec; begin A := TMtx.Create; res := TVec.Create; try A.SetIt(2,2,false,[1,5, -3,6]); A.MeanCols(res); // res = (-1.0, 5.5) finally A.Free; res.Free; end; end;

Copyright 2008 Dew Research
http://www.dewresearch.com