GenericUserPreferenceArray ClassNReco.Recommender Class Library
Like GenericItemPreferenceArray but stores preferences for one user (all user IDs the same) rather than one item.

This implementation maintains two parallel arrays, of item IDs and values. The idea is to save allocating IPreference objects themselves. This saves the overhead of IPreference objects but also duplicating the user ID value.

Inheritance Hierarchy

System Object
  NReco.CF.Taste.Impl.Model GenericUserPreferenceArray

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

[SerializableAttribute]
public sealed class GenericUserPreferenceArray : IPreferenceArray, 
	IEnumerable<IPreference>, IEnumerable

The GenericUserPreferenceArray type exposes the following members.

Constructors

  NameDescription
Public methodGenericUserPreferenceArray(Int32)
Initializes a new instance of the GenericUserPreferenceArray class
Public methodGenericUserPreferenceArray(IList IPreference )
Initializes a new instance of the GenericUserPreferenceArray class
Top
Methods

  NameDescription
Public methodClone
Public methodEquals (Overrides Object Equals(Object).)
Public methodGet
Public methodGetEnumerator
Public methodGetHashCode (Overrides Object GetHashCode .)
Public methodGetIDs
Public methodGetItemID
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUserID
Public methodGetValue
Public methodHasPrefWithItemID
Public methodHasPrefWithUserID
Public methodLength
Public methodSet
Public methodSetItemID
Public methodSetUserID
Public methodSetValue
Public methodSortByItem
Public methodSortByUser
Public methodSortByValue
Public methodSortByValueReversed
Public methodToString (Overrides Object ToString .)
Top
See Also