public class AdjustedCosine extends ItemSimilarityMetric
datamodel, similarities
Constructor and Description |
---|
AdjustedCosine() |
Modifier and Type | Method and Description |
---|---|
double |
similarity(Item item,
Item otherItem)
This method must returns the similarity between two items.
|
afterRun, beforeRun, getSimilarities, run, setDatamodel, toString
public double similarity(Item item, Item otherItem)
ItemSimilarityMetric
If two items do not have a similarity value, the method must return Double.NEGATIVE_INFINITY.
The value returned by this method should be higher the greater the similarity between items.
similarity
in class ItemSimilarityMetric
item
- An itemotherItem
- Other itemCopyright © 2020. All rights reserved.