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> relevantContacts
    The 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
    double gain​(U u)  
    java.util.Set<U> getRelevantItems()  
    boolean isRelevant​(U u)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • relevantContacts

      private final java.util.Set<U> relevantContacts
      The set of adjacent neighbors of the given user in the network.
  • Constructor Details

  • Method Details

    • getRelevantItems

      public java.util.Set<U> getRelevantItems()
      Specified by:
      getRelevantItems in interface es.uam.eps.ir.ranksys.metrics.rel.IdealRelevanceModel.UserIdealRelevanceModel<U,​U>
    • isRelevant

      public boolean isRelevant​(U u)
      Specified by:
      isRelevant in interface es.uam.eps.ir.ranksys.metrics.rel.RelevanceModel.UserRelevanceModel<U,​U>
    • gain

      public double gain​(U u)
      Specified by:
      gain in interface es.uam.eps.ir.ranksys.metrics.rel.RelevanceModel.UserRelevanceModel<U,​U>