Computes a neighborhood consisting of the nearest n users to a given user. "Nearest" is defined by the
given IUserSimilarity.
Inheritance Hierarchy
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
The NearestNUserNeighborhood type exposes the following members.
Constructors
Name | Description | |
---|---|---|
NearestNUserNeighborhood(Int32, IUserSimilarity, IDataModel) | Initializes a new instance of the NearestNUserNeighborhood class | |
NearestNUserNeighborhood(Int32, Double, IUserSimilarity, IDataModel) | Initializes a new instance of the NearestNUserNeighborhood class | |
NearestNUserNeighborhood(Int32, Double, IUserSimilarity, IDataModel, Double) | Initializes a new instance of the NearestNUserNeighborhood class |
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
getDataModel | (Inherited from AbstractUserNeighborhood.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
getSamplingRate | (Inherited from AbstractUserNeighborhood.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUserNeighborhood | (Overrides AbstractUserNeighborhood GetUserNeighborhood(Int64).) | |
getUserSimilarity | (Inherited from AbstractUserNeighborhood.) | |
Refresh | (Inherited from AbstractUserNeighborhood.) | |
ToString | (Overrides Object ToString .) |
See Also