Flag indicating which previously recorded clicks should be used to compute scores:
true
, only consider clicks which occured on the current webpage;false
, consider all previously recorded clicks.Get the number of clicks of the given item to use for score computation (i.e. depending on the value of onlyLocalClicks).
The item whose number of clicks must be returned.
The item click analysis to use to count clicks.
The number of clicks of the given item.
Get a list of all groups (from all menus) sorted in the same order than the list returned by getSortedItemGroupsWithScores.
The menu manager containing the groups to sort.
The data manager containing data for the policy.
A sorted list of groups.
Get a list of all items (from all menus) sorted in the same order than in the list returned by getSortedItemsWithScores.
The menu manager containing the items to sort.
The data manager containing data for the policy.
A sorted list of items.
Build a map from items to their number of clicks, using getItemNbClicks to determine the number of clicks.
The items to use as map keys.
The item click analysis to use to count clicks.
A map from items to their number of clicks.
Sort a list of all elements from the given map (keys) according to the number of times they have been clicked (values).
The map from elements to their number of clicks.
A sorted list of elements.
Generated using TypeDoc
Create a new instance of MostClickedItemPolicy.