QtClustering API qtclustering-163 (20111029234107)

edu.cornell.med.icb.clustering
Interface SimilarityDistanceCalculator

All Known Implementing Classes:
MaxLinkageDistanceCalculator

public interface SimilarityDistanceCalculator

Calculates a similarity measure between two instances available to the clustering algorithm, or between one instance and a cluster.

Author:
Fabien Campagne Date: Oct 2, 2005 Time: 6:32:55 PM

Method Summary
 double distance(int instanceIndex, int otherInstanceIndex)
          Returns the distance between two instances.
 double getIgnoreDistance()
          When some distances between instance pairs are missing/unknown the ignoreDistance is returned.
 

Method Detail

distance

double distance(int instanceIndex,
                int otherInstanceIndex)
Returns the distance between two instances.

Parameters:
instanceIndex - Index of the first instance.
otherInstanceIndex - Index of the second instance.
Returns:
distance measure between the two instances.

getIgnoreDistance

double getIgnoreDistance()
When some distances between instance pairs are missing/unknown the ignoreDistance is returned. The clustering algorithm uses ignoreDistance to recognize cases when the distance is unknown.

Returns:
The distance value that the linkage method will ignore.

QtClustering API qtclustering-163 (20111029234107)

Copyright © 2005-2011 Institute for Computational Biomedicine, All Rights Reserved.