Package org.forester.surfacing
Class CountsBasedPairwiseDomainSimilarity
java.lang.Object
org.forester.surfacing.CountsBasedPairwiseDomainSimilarity
- All Implemented Interfaces:
PairwiseDomainSimilarity
-
Constructor Summary
ConstructorDescriptionCountsBasedPairwiseDomainSimilarity
(short counts_difference, short counts_sum) counts_difference: (counts for domain 1) minus (counts for domain 2). -
Method Summary
Modifier and TypeMethodDescriptionint
Returns (counts for domain 1) minus (counts for domain 2).double
-
Constructor Details
-
CountsBasedPairwiseDomainSimilarity
public CountsBasedPairwiseDomainSimilarity(short counts_difference, short counts_sum) counts_difference: (counts for domain 1) minus (counts for domain 2).- Parameters:
counts_difference
- value of domain_1 minus value of domain_2counts_sum
-
-
-
Method Details
-
getDifferenceInCounts
public int getDifferenceInCounts()Returns (counts for domain 1) minus (counts for domain 2).- Specified by:
getDifferenceInCounts
in interfacePairwiseDomainSimilarity
- Returns:
- the difference in counts
-
getSimilarityScore
public double getSimilarityScore()- Specified by:
getSimilarityScore
in interfacePairwiseDomainSimilarity
-