Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Classes | Functions
toolbox::hdr Namespace Reference

A C++ port of HdrHistogram_c written Michael Barker and released to the public domain. More...

Classes

struct  BucketConfig
 Bucket configuration. More...
 
class  CountAddedIterator
 CountAddedIterator is a recorded value iterator. More...
 
class  Histogram
 A High Dynamic Range (HDR) Histogram. More...
 
class  Iterator
 Iterator is the base iterator for all iterator types. More...
 
class  LinearIterator
 LinearIterator is a linear value iterator. More...
 
class  LogIterator
 LogIterator is a logarithmic value iterator. More...
 
class  PercentileIterator
 PercentileIterator is a percentile iterator. More...
 
struct  PutPercentiles
 
class  RecordedIterator
 RecordedIterator is a recorded value iterator. More...
 

Functions

int64_t min (const Histogram &h) noexcept
 
int64_t max (const Histogram &h) noexcept
 
int64_t value_at_percentile (const Histogram &h, double percentile) noexcept
 
double mean (const Histogram &h) noexcept
 
double stddev (const Histogram &h) noexcept
 
ostream & operator<< (ostream &os, PutPercentiles pp)
 
auto put_percentiles (const Histogram &h, std::int32_t ticks_per_half_distance, double value_scale) noexcept
 

Detailed Description

A C++ port of HdrHistogram_c written Michael Barker and released to the public domain.

Function Documentation

◆ min()

TOOLBOX_API std::int64_t toolbox::hdr::min ( const Histogram h)
noexcept

Definition at line 41 of file Utility.cpp.

◆ max()

TOOLBOX_API std::int64_t toolbox::hdr::max ( const Histogram h)
noexcept

Definition at line 46 of file Utility.cpp.

◆ value_at_percentile()

TOOLBOX_API std::int64_t toolbox::hdr::value_at_percentile ( const Histogram h,
double  percentile 
)
noexcept

Get the value at a specific percentile.

Parameters
hThe histogram.
percentileThe percentile to get the value for.
Returns
the percentile value.

Definition at line 51 of file Utility.cpp.

◆ mean()

TOOLBOX_API double toolbox::hdr::mean ( const Histogram h)
noexcept

Gets the mean for the values in the histogram.

Parameters
hThe histogram.
Returns
the mean.

Definition at line 66 of file Utility.cpp.

◆ stddev()

TOOLBOX_API double toolbox::hdr::stddev ( const Histogram h)
noexcept

Gets the standard deviation for the values in the histogram.

Parameters
hThe histogram.
Returns
the standard deviation.

Definition at line 80 of file Utility.cpp.

◆ operator<<()

TOOLBOX_API std::ostream & toolbox::hdr::operator<< ( ostream &  os,
PutPercentiles  pp 
)

Definition at line 96 of file Utility.cpp.

◆ put_percentiles()

auto toolbox::hdr::put_percentiles ( const Histogram h,
std::int32_t  ticks_per_half_distance,
double  value_scale 
)
inlinenoexcept

Definition at line 56 of file Utility.hpp.