IItemSimilarity ItemSimilarity Method NReco.Recommender Class Library
Returns the degree of similarity, of two items, based on the preferences that users have expressed for the items.

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

double ItemSimilarity(
	long itemID1,
	long itemID2

Return Value

Type: Double
similarity between the items, in [-1,1] or {@link Double#NaN} similarity is unknown

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