FITKMS_business.Util.RecommendationService.GenerateUserProfile C# (CSharp) Метод

GenerateUserProfile() приватный Метод

private GenerateUserProfile ( int userId ) : double>.Dictionary
userId int
Результат double>.Dictionary
        private Dictionary<Tagovi, double> GenerateUserProfile(int userId)
        {
            //Tag frequency–inverse user frequency (TF-IUF)
            Dictionary<Tagovi, double> userTags = new Dictionary<Tagovi, double>();

            foreach (Tagovi item in Connection.dm.fsp_Tagovi_SelectByUser(userId))
            {
                userTags.Add(item, GetLocalWeight(userId, item.TagID)*GetGlobalWeight(item.TagID));
            }

            return userTags;
        }