package owl-base

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Owl_countmin_sketch.MakeSource

Parameters

Signature

Type definition
Sourcetype 'a sketch

The type of Count-Min sketches

Core functions
Sourceval init : epsilon:float -> delta:float -> 'a sketch

init epsilon delta initializes a sketch with approximation ratio (1 + epsilon) and failure probability delta.

Sourceval incr : 'a sketch -> 'a -> unit

incr s x increments the frequency count of x in sketch s in-place.

Sourceval count : 'a sketch -> 'a -> int

count s x returns the estimated frequency of element x in s.

Sourceval init_from : 'a sketch -> 'a sketch

init_from s initializes a new empty sketch with the same parameters as s, which can later be merged with s.

Sourceval merge : 'a sketch -> 'a sketch -> 'a sketch

merge s1 s2 returns a new sketch whose counts are the sum of those in s1 and s2. Raises INVALID_ARGUMENT if the parameters of s1 and s2 do not match.

OCaml

Innovation. Community. Security.