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;
}