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


MeanCenterColumns

Declaration: TMatrix.MeanCenterColumns (Means: TVector);
The method MeanCenterColumns subtracts the mean of each column of the matrix from the elements in that column. This means that the elements of the data matrix are shifted in a way that each column of the matrix has a zero mean. The means of all columns are returned in the parameters means.

The parameter means may be set to NIL, if these results are not needed. If means is not NIL then the size of the vector parameter means is automatically adjusted to the NrOfColumns.