Class PIP

  • All Implemented Interfaces:
    Partible<User>

    public class PIP
    extends UserSimilarityMetric
    Implements the following CF similarity metric: Ahn, H. J. (2008). A new similarity measure for collaborative filtering to alleviate the new user cold-starting problem, Information Sciences, 178, 37-51.
    • Constructor Detail

      • PIP

        public PIP()
    • Method Detail

      • similarity

        public double similarity​(User user,
                                 User otherUser)
        Description copied from class: UserSimilarityMetric
        This method must returns the similarity between two users.

        If two users 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 users.

        Specified by:
        similarity in class UserSimilarityMetric
        Parameters:
        user - A user
        otherUser - Other user
        Returns:
        Similarity between user and otherUser