public interface Similarity
| Modifier and Type | Method and Description |
|---|---|
Stream<Tuple2id> |
similarElems(int idx)
Returns all the users/items having a similarity greater than 0,
together with the value of the similarity.
|
IntToDoubleFunction |
similarity(int idx)
Returns a function that returns the similarity with the user/item.
|
default double |
similarity(int idx1,
int idx2)
Returns the similarity between two users/items.
|
IntToDoubleFunction similarity(int idx)
idx - index of the user/itemdefault double similarity(int idx1,
int idx2)
idx1 - index of user/itemidx2 - index of user/itemCopyright © 2016. All rights reserved.