approximate_histogram v0.1.1 ApproximateHistogram

Summary

Types

bin()
bin() :: {value, count}
count()
count() :: non_neg_integer
options()
options() :: %{max_bins: pos_integer}
t()
t() :: %ApproximateHistogram{bins: [bin], options: options}
value()
value() :: number

Functions

add(histo, value)
add(t, value) :: t
bin_count(arg)
bin_value(arg)
bins_used(histo)
max_bins(histo)
max_bins(t) :: non_neg_integer
new(size \\ 50)
new(pos_integer) :: t
percentile(histo, percentile)
percentile_for_value(histo, target)
size(histo)
size(t) :: non_neg_integer
to_list(histo)
to_list(t) :: [bin]