Returns the degree of similarity, of two users, based on the their preferences.
Namespace: NReco.CF.Taste.SimilarityAssembly: NReco.Recommender (in NReco.Recommender.dll) Version: 1.0.0.0 (1.0.0.0)
double UserSimilarity(
long userID1,
long userID2
)
double UserSimilarity(
long userID1,
long userID2
)
Function UserSimilarity (
userID1 As Long,
userID2 As Long
) As Double
Function UserSimilarity (
userID1 As Long,
userID2 As Long
) As Double
double UserSimilarity(
long long userID1,
long long userID2
)
double UserSimilarity(
long long userID1,
long long userID2
)
abstract UserSimilarity :
userID1 : int64 *
userID2 : int64 -> float
abstract UserSimilarity :
userID1 : int64 *
userID2 : int64 -> float
Return Value
Type:
Doublesimilarity 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.