An alternate representation of an array of {@link Preference}.
Implementations, in theory, can produce a more memory-efficient representation.
Namespace: NReco.CF.Taste.ModelAssembly: NReco.Recommender (in NReco.Recommender.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
The IPreferenceArray type exposes the following members.
Methods
Name | Description | |
---|---|---|
Clone |
Clone object instance
| |
Get |
Get preference at specified index
| |
GetEnumerator | Returns an enumerator that iterates through the collection. (Inherited from IEnumerable IPreference .) | |
GetEnumerator | Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.) | |
GetIDs |
Get all IDs
| |
GetItemID |
Get item ID from preference at specified index
| |
GetUserID |
Get user ID from preference at specified index
| |
GetValue |
Get preference value
| |
HasPrefWithItemID |
Check if array contains a preference with given item ID
| |
HasPrefWithUserID |
Check if array contains a preference with given user ID
| |
Length |
Size of length of the "array"
| |
Set |
Sets preference at i from information in the given IPreference | |
SetItemID |
Sets item ID for preference at i.
| |
SetUserID | ||
SetValue |
Sets preference value for preference at i.
| |
SortByItem |
Sorts underlying array by item ID, ascending.
| |
SortByUser |
Sorts underlying array by user ID, ascending.
| |
SortByValue |
Sorts underlying array by preference value, ascending.
| |
SortByValueReversed |
Sorts underlying array by preference value, descending.
|
See Also