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


DistanceOfObjects

Declaration: TMatrix.DistanceOfObjects (Mode: TDistMode; obj1, obj2: integer): double;
The function DistanceOfObjects calculates the multivariate distance between the objects obj1 and obj2. The parameter Mode defines the type of distance to be calculated.

Please note that the rows of the matrix are regarded as objects, the columns as variables.

If the parameter Mode is set to dmUserDef an OnCalcDistance event is triggered. This way the user may create any kind of distance measure.