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


NormalizeColumns

Declaration: NormalizeColumns (var Arr: TDouble2DArray): integer;
The function NormalizeColumns transforms all columns of the array Arr such that the column vectors exhibit unit length. The function returns a zero value if all columns could be processed or a -1 value if at least one column could not be processed (i.e. a column contained only zero values).