Dew MtxVec NET
TMtx.MeanRows Method
Summary
Calculates the mean value of each of the matrix rows.

Class
TMtx

Declaration
Procedure MeanRows(Result: TVec);

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

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.MeanRows(res); // res = (3, 1.5) finally A.Free; res.Free; end; end;

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