NearestNUserNeighborhood ClassNReco.Recommender Class Library
Computes a neighborhood consisting of the nearest n users to a given user. "Nearest" is defined by the given IUserSimilarity.
Inheritance Hierarchy

System Object
  NReco.CF.Taste.Impl.Neighborhood AbstractUserNeighborhood
    NReco.CF.Taste.Impl.Neighborhood NearestNUserNeighborhood

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

public sealed class NearestNUserNeighborhood : AbstractUserNeighborhood

The NearestNUserNeighborhood type exposes the following members.

Constructors

  NameDescription
Public methodNearestNUserNeighborhood(Int32, IUserSimilarity, IDataModel)
Initializes a new instance of the NearestNUserNeighborhood class
Public methodNearestNUserNeighborhood(Int32, Double, IUserSimilarity, IDataModel)
Initializes a new instance of the NearestNUserNeighborhood class
Public methodNearestNUserNeighborhood(Int32, Double, IUserSimilarity, IDataModel, Double)
Initializes a new instance of the NearestNUserNeighborhood class
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodgetDataModel (Inherited from AbstractUserNeighborhood.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodgetSamplingRate (Inherited from AbstractUserNeighborhood.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUserNeighborhood (Overrides AbstractUserNeighborhood GetUserNeighborhood(Int64).)
Public methodgetUserSimilarity (Inherited from AbstractUserNeighborhood.)
Public methodRefresh (Inherited from AbstractUserNeighborhood.)
Public methodToString (Overrides Object ToString .)
Top
See Also