IUserSimilarity UserSimilarity Method NReco.Recommender Class Library
Returns the degree of similarity, of two users, based on the their preferences.

Namespace: NReco.CF.Taste.Similarity
Assembly: NReco.Recommender (in NReco.Recommender.dll) Version: (

double UserSimilarity(
	long userID1,
	long userID2

Return Value

Type: Double
similarity between the users, in [-1,1] or Double.NaN if similarity is unknown

Throws NReco.CF.Taste.Common.NoSuchUserException if either user is known to be non-existent in the data. Throws TasteException if an error occurs while accessing the data.
See Also