Package org.forester.surfacing
Class CombinationsBasedPairwiseDomainSimilarity
java.lang.Object
org.forester.surfacing.CombinationsBasedPairwiseDomainSimilarity
- All Implemented Interfaces:
PairwiseDomainSimilarity
public class CombinationsBasedPairwiseDomainSimilarity
extends Object
implements PairwiseDomainSimilarity
-
Constructor Summary
ConstructorDescriptionCombinationsBasedPairwiseDomainSimilarity
(int same_domains, int different_domains, int difference_in_counts) -
Method Summary
Modifier and TypeMethodDescriptionint
This should return the -- not normalized, not absolute -- difference in counts (for example domain counts) for the two domains.int
int
double
-
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 interfacePairwiseDomainSimilarity
- Returns:
- the difference in counts
-
getNumberOfDifferentDomains
public int getNumberOfDifferentDomains() -
getNumberOfSameDomains
public int getNumberOfSameDomains() -
getSimilarityScore
public double getSimilarityScore()- Specified by:
getSimilarityScore
in interfacePairwiseDomainSimilarity
-