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


NormalizeRows

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