◆ get() [1/2]
This method returns a FeatureMatcher object with the default similarity measure set to "jaccard".
- Returns
- a FeatureMatcher object with the default similarity measure set to "jaccard"
◆ get() [2/2]
static FeatureMatcher ppt4j.feature.FeatureMatcher.get |
( |
String | algorithm | ) |
|
|
static |
Returns a FeatureMatcher based on the input algorithm.
- Parameters
-
- Returns
- a FeatureMatcher based on the specified algorithm
- Exceptions
-
IllegalArgumentException | if the algorithm is unknown |
◆ getAlgorithm()
String ppt4j.feature.FeatureMatcher.getAlgorithm |
( |
| ) |
|
Returns the algorithm used by the object.
- Returns
- the algorithm used by the object
◆ isMatch()
default boolean ppt4j.feature.FeatureMatcher.isMatch |
( |
Features | f1, |
|
|
Features | f2, |
|
|
double | threshold ) |
Checks if the similarity score between two Features objects is greater than or equal to a specified threshold.
- Parameters
-
f1 | the first Features object to compare |
f2 | the second Features object to compare |
threshold | the threshold value for the match to be considered successful |
- Returns
- true if the similarity score is greater than or equal to the threshold, false otherwise
◆ match()
Calculates the similarity between two feature sets.
- Parameters
-
f1 | the first set of features |
f2 | the second set of features |
- Returns
- a double value representing the similarity between f1 and f2
The documentation for this interface was generated from the following file: