Class ContactRecommendationRelevanceModel.UserContactRecommendationRelevanceModel
java.lang.Object
es.uam.eps.ir.relison.links.recommendation.metrics.accuracy.ContactRecommendationRelevanceModel.UserContactRecommendationRelevanceModel
- All Implemented Interfaces:
es.uam.eps.ir.ranksys.core.model.UserModel.Model<U>,es.uam.eps.ir.ranksys.metrics.rel.IdealRelevanceModel.UserIdealRelevanceModel<U,U>,es.uam.eps.ir.ranksys.metrics.rel.RelevanceModel.UserRelevanceModel<U,U>
- Enclosing class:
- ContactRecommendationRelevanceModel<U>
private class ContactRecommendationRelevanceModel.UserContactRecommendationRelevanceModel
extends java.lang.Object
implements es.uam.eps.ir.ranksys.metrics.rel.IdealRelevanceModel.UserIdealRelevanceModel<U,U>
The relevance model for a single user in the network.
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<U>relevantContactsThe set of adjacent neighbors of the given user in the network. -
Constructor Summary
Constructors Constructor Description UserContactRecommendationRelevanceModel(U user)Constructor. -
Method Summary
Modifier and Type Method Description doublegain(U u)java.util.Set<U>getRelevantItems()booleanisRelevant(U u)
-
Field Details
-
relevantContacts
The set of adjacent neighbors of the given user in the network.
-
-
Constructor Details
-
UserContactRecommendationRelevanceModel
Constructor.- Parameters:
user- the user.
-
-
Method Details