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....


Class: none
Declaration: TCalcDistFunc = function (ix: integer): double;

The procedure type TCalcDistFunc is used to calculate the distance between the test vector DatVec and a data matrix entry when searching for the k nearest neighbors by the procedure FindNearestNeighbors.

The parameter ix points to the current row of the data matrix InMat. The function has to return the distance between the matrix entry in row ix and the test vector DatVec.


Last Update: 2012-Oct-20