cbr.framework
Interface SimilarityMetric

All Known Implementing Classes:
EuclideanDistanceMetric, NullMetric, RankSimilarityMetric

public interface SimilarityMetric

When a user defines a similarity metric they will need to implement this interface.


Method Summary
 double compare(Feature f1, Feature f2)
          Users will need to override this method to perform some meaningful comparison between two features.
 

Method Detail

compare

double compare(Feature f1,
               Feature f2)
Users will need to override this method to perform some meaningful comparison between two features.

Parameters:
f1 - a case feature
f2 - another case feature
Returns:
the similarity of these two features represented as a double. 1.0 is entirely similar, whereas 0.0 is entirely dissimilar.