C# Class FITKMS_business.Util.RecommendationService

ファイルを表示 Open project: fitba/km-2013-projects-team-bjelasnica Class Usage Examples

Public Methods

Method Description
ColaborativeFiltering ( int ID ) : List
GetTopArticleMatches ( int articleId, int userId ) : List
GetTopArticles ( int userId ) : List
GetTopQuestionsMatches ( int questionId, int userId ) : List

Private Methods

Method Description
CalculateCosineSimilarity ( double>.Dictionary vector1, double>.Dictionary vector2 ) : double
CalculatePearsonCorrelationForArticles ( int article1, int article2 ) : double
CalculatePearsonCorrelationForQuestions ( int question1, int question2 ) : double
CompleteItemProfile ( List articles ) : void
GenerateUserCluster ( int userId ) : List
GenerateUserProfile ( int userId ) : double>.Dictionary
GetGlobalWeight ( int tagId ) : double
GetLocalWeight ( int userId, int tagId ) : double
GetRatingsForArticles ( int articleId, int userId ) : void
GetRatingsForQuestions ( int questionId, int userId ) : void

Method Details

ColaborativeFiltering() public method

public ColaborativeFiltering ( int ID ) : List
ID int
return List

GetTopArticleMatches() public method

public GetTopArticleMatches ( int articleId, int userId ) : List
articleId int
userId int
return List

GetTopArticles() public method

public GetTopArticles ( int userId ) : List
userId int
return List

GetTopQuestionsMatches() public method

public GetTopQuestionsMatches ( int questionId, int userId ) : List
questionId int
userId int
return List