Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MostClickedItemsPolicy

Hierarchy

Implements

Index

Constructors

constructor

Properties

name

name: string = "Most clicked items"

onlyLocalClicks

onlyLocalClicks: boolean = false

Flag indicating which previously recorded clicks should be used to compute scores:

  • if true, only consider clicks which occured on the current webpage;
  • if false, consider all previously recorded clicks.

Methods

Private getGroupNbClicks

Private getItemNbClicks

getSortedItemGroups

getSortedItemGroupsWithScores

getSortedItems

getSortedItemsWithScores

Private mapGroupsToNbClicks

Private mapItemsToNbClicks

Private sortMappedElementsByNbClicks

  • sortMappedElementsByNbClicks<E>(elementsToNbClicks: Map<E, number>): ElementWithNbClicks<E>[]

Generated using TypeDoc