public final class SimilarityResultImpl extends Object implements SimilarityResult
Constructor and Description |
---|
SimilarityResultImpl(int targetIndex,
double dissimilarity)
Construct.
|
Modifier and Type | Method and Description |
---|---|
double |
getDissimiliarity()
Get the represented dissimilarity value.
|
int |
getTargetIndex()
Get the internal index of the represented target structure.
|
String |
toString() |
public SimilarityResultImpl(int targetIndex, double dissimilarity)
targetIndex
- Target indexdissimilarity
- Dissimilarity to representpublic int getTargetIndex()
SimilarityResult
getTargetIndex
in interface SimilarityResult
public double getDissimiliarity()
SimilarityResult
getDissimiliarity
in interface SimilarityResult