DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


MeanVec

Declaration: TMatrix.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).