Options
All
  • Public
  • Public/Protected
  • All
Menu

A filter that can count occurences of items and estimate their frequencies.

author

Thomas Minier

author

Arnaud Grall

Type Parameters

  • T

Hierarchy

  • default

Implemented by

Index

Methods

  • count(element: T): number
  • Perform a point query: estimate the number of occurence of an element

    Parameters

    • element: T

      The element we want to count

    Returns number

    The estimate number of occurence of the element

  • update(element: T, count: number): void
  • Update the count min sketch with a new occurrence of an element

    Parameters

    • element: T

      The new element

    • count: number

      Number of occurences of the elemnt (defauls to one)

    Returns void

Generated using TypeDoc