|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....|
|Home MathPack OpenArrays Procedures and Functions DistanceOfObjects|
Assuming that the matrix Mat contains multivariate coordinates of a number of observations (objects), the function DistanceOfObjects calculates the multivariate distance between two observations. The rows of the matrix Mat are regarded as objects, the columns as variables.
The parameter Mode defines the type of the distance to be calculated, the parameters obj1 and obj2 specify the observations to be used for the distance calculation. DistanceOfObjects allows restricting the variables to be used for the calculation by defining the range of variables from feat1 to feat2.
The function returns the distance between the two objects in the variable parameter dist. It returns the following error codes:
0 ... everything is OK, dist is valid