public class ThresholdNeighborhood extends Object implements Neighborhood
| Constructor and Description |
|---|
ThresholdNeighborhood(Similarity sim,
double threshold)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Stream<Tuple2id> |
getNeighbors(int idx)
Returns the neighborhood of a user/index.
|
public ThresholdNeighborhood(Similarity sim, double threshold)
sim - similaritythreshold - minimum value to be considered as neighborpublic Stream<Tuple2id> getNeighbors(int idx)
getNeighbors in interface Neighborhoodidx - user/index whose neighborhood is calculatedCopyright © 2016. All rights reserved.