The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



DistanceOfObjects


Unit: SDL_matrix
Class: TMatrix
Declaration: function 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 self 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.


Last Update: 2015-May-29