package hdr_histogram

  1. Overview
  2. Docs

Module Hdr_histogramSource

Sourcetype t

The type of histogram values

Sourceval init : lowest_discernible_value:int -> highest_trackable_value:int -> significant_figures:int -> t

Initialize a new histogram

Sourceval record_value : t -> int -> bool

Record a value in the histogram

Sourceval close : t -> unit

Close the histogram

Sourceval value_at_percentile : t -> float -> int

Get the value at the given percentile in the histogram

Sourceval min : t -> int

Get the minimum value in the histogram

Sourceval max : t -> int

Get the maximum value in the histogram

Sourceval mean : t -> float

Get the mean value in the histogram

Sourceval stddev : t -> float

Get the standard deviation of the values in the histogram

Sourceval memory_size : t -> int

Get the memory size of the histogram