TanimotoCoefficientSimilarity ClassNReco.Recommender Class Library
An implementation of a "similarity" based on the Tanimoto coefficient, or extended Jaccard coefficient.
Inheritance Hierarchy

System Object
  NReco.CF.Taste.Impl.Similarity AbstractItemSimilarity
    NReco.CF.Taste.Impl.Similarity TanimotoCoefficientSimilarity

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

public sealed class TanimotoCoefficientSimilarity : AbstractItemSimilarity, 
	IUserSimilarity, IRefreshable

The TanimotoCoefficientSimilarity type exposes the following members.

Constructors

  NameDescription
Public methodTanimotoCoefficientSimilarity
Initializes a new instance of the TanimotoCoefficientSimilarity class
Top
Methods

  NameDescription
Public methodAllSimilarItemIDs (Inherited from AbstractItemSimilarity.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodItemSimilarities (Overrides AbstractItemSimilarity ItemSimilarities(Int64,  Int64 ).)
Public methodItemSimilarity (Overrides AbstractItemSimilarity ItemSimilarity(Int64, Int64).)
Public methodRefresh
Public methodSetPreferenceInferrer
Public methodToString (Overrides Object ToString .)
Public methodUserSimilarity
Top
Remarks

This is intended for "binary" data sets where a user either expresses a generic "yes" preference for an item or has no preference. The actual preference values do not matter here, only their presence or absence.

The value returned is in [0,1].

See Also