Ejemplo n.º 1
0
        public double Calculate(int itemA, int itemB)
        {
            double          theta = 0.9d;
            IItemSimilarity collaborateSimilarity = new ItemCollaborativeSimilarity();
            IItemSimilarity genreSimilarity       = new ItemGenreSimilarity();

            return(theta * collaborateSimilarity.Calculate(itemA, itemB) + (1 - theta) * genreSimilarity.Calculate(itemA, itemB));
        }
Ejemplo n.º 2
0
        public double Calculate(int itemA, int itemB)
        {
            double theta = 0.9d;
            IItemSimilarity collaborateSimilarity = new ItemCollaborativeSimilarity();
            IItemSimilarity genreSimilarity = new ItemGenreSimilarity();

            return theta * collaborateSimilarity.Calculate(itemA, itemB) + (1 - theta) * genreSimilarity.Calculate(itemA, itemB);
        }