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
 
auto put_percentiles (const Histogram &h, std::int32_t ticks_per_half_distance, double value_scale) noexcept
 
template<typename StreamT >
requires Streamable<StreamT>
StreamToperator<< (StreamT &os, PutPercentiles pp)
 

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 37 of file Utility.cpp.

◆ max()

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

Definition at line 42 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 47 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 62 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 76 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 60 of file Utility.hpp.

◆ operator<<()

template<typename StreamT >
requires Streamable<StreamT>
StreamT & toolbox::hdr::operator<< ( StreamT os,
PutPercentiles  pp 
)

Definition at line 68 of file Utility.hpp.