de.hpi.fgis.dude.similarityfunction
Interface StringSimilarity

All Known Implementing Classes:
BlockDistanceFunction, CosineSimilarityFunction, DiceCoefficientFunction, EquationSimilarityFunction, EuclideanDistanceFunction, JaccardSimilarityFunction, JaroDistanceFunction, JaroWinklerFunction, LevenshteinDistanceFunction, MatchingCoefficientFunction, MongeElkanFunction, NeedlemanWunschFunction, OverlapCoefficientFunction, SimmetricsFunction, SmithWatermanFunction, SmithWatermanGotohFunction, SoundExFunction, TFIDFSimilarityFunction

public interface StringSimilarity

StringSimilarity is an interface for comparing Strings.

Author:
Matthias Pohl

Method Summary
 double getSimilarity(String str1, String str2)
          Returns the similarity of the passed Strings, where 0.0 means that Strings are completely different, and 1.0 indicates that the passed Strings are the same.
 

Method Detail

getSimilarity

double getSimilarity(String str1,
                     String str2)
Returns the similarity of the passed Strings, where 0.0 means that Strings are completely different, and 1.0 indicates that the passed Strings are the same.

Parameters:
str1 - The first String.
str2 - The second String.
Returns:
Returns the similarity of the passed Strings or 0.0, if null was passed for at least one String.


Copyright © 2011 Hasso Plattner Institute - Chair of Information Systems. All Rights Reserved.