The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



MeanVec


Unit: SDL_matrix
Class: TMatrix, TIntMatrix
Declaration: procedure MeanVec (Dim: TDims; Means: TVector);

The method MeanVec calculates the vector of row or column means of the matrix. The parameter Dim controls along which dimension of the array the means are calculated; it may assume either dimX or dimY. In the first case the parameter Means is loaded with the column means, in the second case the row means are calculated and stored in Means. The size of the vector Means is automatically adjusted to the number of columns or rows (depending on Dim).



Last Update: 2023-Feb-06