|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SimilarityFunction
SimilarityFunction
is used to determine the similarity of two DuDeObject
's. The similarity is described by a floating-point
number within the range of 0 and 1.
AbstractSimilarityFunction
Nested Class Summary | |
---|---|
static class |
SimilarityFunction.SimilarityValidationState
SimilarityValidationState is a descriptor whether two values could be used for similarity calculation or not. |
Method Summary | |
---|---|
SimilarityFunction.SimilarityValidationState |
getLastValidationState()
Returns the validation state of the last getSimilarity(DuDeObjectPair) call. |
double |
getSimilarity(DuDeObjectPair pair)
Calculates the similarity of passed DuDeObjectPair 's members. |
Method Detail |
---|
double getSimilarity(DuDeObjectPair pair)
DuDeObjectPair
's members. Besides returning the similarity of the pair, this method stores the
calculated similarity also in the pair using DuDeObjectPair.setSimilarity(double)
. Any already calculated similarity will be
overwritten.
pair
- A pair of DuDeObjects
that shall be compared.
0.0
(not equal) and 1.0
(the same object).SimilarityFunction.SimilarityValidationState getLastValidationState()
getSimilarity(DuDeObjectPair)
call. If it was not called, yet,
SimilarityFunction.SimilarityValidationState.BothInvalid
is returned.
SimilarityFunction.SimilarityValidationState.BothInvalid
, if
getSimilarity(DuDeObjectPair)
was not called, yet.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |