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


Leng

Declaration:TVector.Leng: double;
The property Leng is a read-only property in the class TIntVector returning the length of the vector. In the class TVector it can be used to both calculate the length of a vector and to set the length of a vector to a given value. Setting the length of a zero-length vector is ignored. Setting the length of a vector to 1.0 is equal to normalizing this vector.

Example: The statement L := Vec1.Leng; calculates the length of the vector Vec1 and assigns it to the variable L.