IPreferenceArray InterfaceNReco.Recommender Class Library
An alternate representation of an array of {@link Preference}. Implementations, in theory, can produce a more memory-efficient representation.

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

public interface IPreferenceArray : IEnumerable<IPreference>, 
	IEnumerable

The IPreferenceArray type exposes the following members.

Methods

  NameDescription
Public methodClone
Clone object instance
Public methodGet
Get preference at specified index
Public methodGetEnumerator 
Returns an enumerator that iterates through the collection.
(Inherited from IEnumerable IPreference .)
Public methodGetEnumerator 
Returns an enumerator that iterates through a collection.
(Inherited from IEnumerable.)
Public methodGetIDs
Get all IDs
Public methodGetItemID
Get item ID from preference at specified index
Public methodGetUserID
Get user ID from preference at specified index
Public methodGetValue
Get preference value
Public methodHasPrefWithItemID
Check if array contains a preference with given item ID
Public methodHasPrefWithUserID
Check if array contains a preference with given user ID
Public methodLength
Size of length of the "array"
Public methodSet
Sets preference at i from information in the given IPreference
Public methodSetItemID
Sets item ID for preference at i.
Public methodSetUserID
Public methodSetValue
Sets preference value for preference at i.
Public methodSortByItem
Sorts underlying array by item ID, ascending.
Public methodSortByUser
Sorts underlying array by user ID, ascending.
Public methodSortByValue
Sorts underlying array by preference value, ascending.
Public methodSortByValueReversed
Sorts underlying array by preference value, descending.
Top
See Also