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: 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 for downloading the code): dendro

Last Update: 2012-Oct-20