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: 1.0.0.0 (1.0.0.0)
Syntax

double ItemSimilarity(
	long itemID1,
	long itemID2
)

Return Value

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

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