public class SimpleComparisonResult extends Object implements ComparisonResult
Constructor and Description |
---|
SimpleComparisonResult(double similarity,
double dissimilariy)
Create a result object.
|
Modifier and Type | Method and Description |
---|---|
double |
getDissimilarity()
Dissimilarity score of the comparison.
|
double |
getSimilarity()
Similarity score of the comparison.
|
String |
toString() |
public SimpleComparisonResult(double similarity, double dissimilariy)
similarity
- Similarity value to storedissimilariy
- Dissimilarity value to storepublic double getSimilarity()
ComparisonResult
getSimilarity
in interface ComparisonResult
public double getDissimilarity()
ComparisonResult
getDissimilarity
in interface ComparisonResult