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



OnCalcDistance


Unit:SDL_dendrogram
Class: TDendrogram
Declaration: property OnCalcDistance: TOnCalcDistanceEvent;
{TOnCalcDistanceEvent = procedure (Sender: TObject; Row1, Row2: integer; var Distance: double) of object;}

The event OnCalcDistance is triggered during cluster analysis if the distance measures (property DistMeasure) has been set to dmUserDef.

The parameters Row1 and Row2 specify the indexes of the data table Data. The parameter Sender points to the TDendrogram instance which triggered the event. The variable parameter Distance has to be used to return the distance between the two objects.

Example: This event is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): dendro



Last Update: 2023-Dec-13