Class CombinationsBasedPairwiseDomainSimilarity

java.lang.Object
org.forester.surfacing.CombinationsBasedPairwiseDomainSimilarity
All Implemented Interfaces:
PairwiseDomainSimilarity

public class CombinationsBasedPairwiseDomainSimilarity extends Object implements PairwiseDomainSimilarity
  • Constructor Details

    • CombinationsBasedPairwiseDomainSimilarity

      public CombinationsBasedPairwiseDomainSimilarity(int same_domains, int different_domains, int difference_in_counts)
  • Method Details

    • getDifferenceInCounts

      public int getDifferenceInCounts()
      Description copied from interface: PairwiseDomainSimilarity
      This should return the -- not normalized, not absolute -- difference in counts (for example domain counts) for the two domains. It is important that it is: (counts for domain 1) minus (counts for domain 2).
      Specified by:
      getDifferenceInCounts in interface PairwiseDomainSimilarity
      Returns:
      the difference in counts
    • getNumberOfDifferentDomains

      public int getNumberOfDifferentDomains()
    • getNumberOfSameDomains

      public int getNumberOfSameDomains()
    • getSimilarityScore

      public double getSimilarityScore()
      Specified by:
      getSimilarityScore in interface PairwiseDomainSimilarity