Class Jaccard

    • Constructor Detail

      • Jaccard

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