Class CJMSD

  • All Implemented Interfaces:
    Partible<User>

    public class CJMSD
    extends UserSimilarityMetric
    Implements the following CF similarity metric: Bobadilla, J., Ortega, F., Hernando, A., & Arroyo, A. (2012). A Balanced Memory-Based Collaborative Filtering Similarity Measure, International Journal of Intelligent Systems, 27, 939-946.
    • Constructor Detail

      • CJMSD

        public CJMSD()
    • 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