A High Dynamic Range (HDR) Histogram.
More...
#include <toolbox/hdr/Histogram.hpp>
A High Dynamic Range (HDR) Histogram.
Definition at line 64 of file Histogram.hpp.
◆ Histogram() [1/4]
◆ Histogram() [2/4]
toolbox::hdr::Histogram::Histogram |
( |
std::int64_t |
lowest_trackable_value, |
|
|
std::int64_t |
highest_trackable_value, |
|
|
std::int32_t |
significant_figures |
|
) |
| |
◆ ~Histogram()
toolbox::hdr::Histogram::~Histogram |
( |
| ) |
|
|
defaultnoexcept |
◆ Histogram() [3/4]
◆ Histogram() [4/4]
toolbox::hdr::Histogram::Histogram |
( |
Histogram && |
| ) |
|
|
defaultnoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ lowest_trackable_value()
std::int64_t toolbox::hdr::Histogram::lowest_trackable_value |
( |
| ) |
const |
|
inlinenoexcept |
◆ highest_trackable_value()
std::int64_t toolbox::hdr::Histogram::highest_trackable_value |
( |
| ) |
const |
|
inlinenoexcept |
◆ significant_figures()
std::int32_t toolbox::hdr::Histogram::significant_figures |
( |
| ) |
const |
|
inlinenoexcept |
◆ sub_bucket_count()
std::int32_t toolbox::hdr::Histogram::sub_bucket_count |
( |
| ) |
const |
|
inlinenoexcept |
◆ bucket_count()
std::int32_t toolbox::hdr::Histogram::bucket_count |
( |
| ) |
const |
|
inlinenoexcept |
◆ total_count()
std::int64_t toolbox::hdr::Histogram::total_count |
( |
| ) |
const |
|
inlinenoexcept |
◆ counts_len()
std::int32_t toolbox::hdr::Histogram::counts_len |
( |
| ) |
const |
|
inlinenoexcept |
◆ min()
int64_t toolbox::hdr::Histogram::min |
( |
| ) |
const |
|
noexcept |
◆ max()
int64_t toolbox::hdr::Histogram::max |
( |
| ) |
const |
|
noexcept |
Get maximum value from the histogram. Will return 0 if the histogram is empty.
Definition at line 128 of file Histogram.cpp.
◆ values_are_equivalent()
bool toolbox::hdr::Histogram::values_are_equivalent |
( |
std::int64_t |
a, |
|
|
std::int64_t |
b |
|
) |
| const |
|
noexcept |
Determine if two values are equivalent with the histogram's resolution. Where "equivalent" means that value samples recorded for any two equivalent values are counted in a common total count.
- Parameters
-
a | first value to compare. |
b | second value to compare. |
- Returns
- true if values are equivalent with the histogram's resolution.
Definition at line 136 of file Histogram.cpp.
◆ lowest_equivalent_value()
int64_t toolbox::hdr::Histogram::lowest_equivalent_value |
( |
std::int64_t |
value | ) |
const |
|
noexcept |
◆ highest_equivalent_value()
int64_t toolbox::hdr::Histogram::highest_equivalent_value |
( |
std::int64_t |
value | ) |
const |
|
noexcept |
◆ count_at_value()
int64_t toolbox::hdr::Histogram::count_at_value |
( |
std::int64_t |
value | ) |
const |
|
noexcept |
Get the count of recorded values at a specific value (to within the histogram resolution at the value level).
- Parameters
-
value | The value for which to provide the recorded count. |
- Returns
- The total count of values recorded in the histogram within the value range.
Definition at line 153 of file Histogram.cpp.
◆ count_at_index()
int64_t toolbox::hdr::Histogram::count_at_index |
( |
std::int32_t |
index | ) |
const |
|
noexcept |
◆ value_at_index()
int64_t toolbox::hdr::Histogram::value_at_index |
( |
std::int32_t |
index | ) |
const |
|
noexcept |
◆ size_of_equivalent_value_range()
int64_t toolbox::hdr::Histogram::size_of_equivalent_value_range |
( |
std::int64_t |
value | ) |
const |
|
noexcept |
◆ next_non_equivalent_value()
int64_t toolbox::hdr::Histogram::next_non_equivalent_value |
( |
std::int64_t |
value | ) |
const |
|
noexcept |
◆ median_equivalent_value()
int64_t toolbox::hdr::Histogram::median_equivalent_value |
( |
std::int64_t |
value | ) |
const |
|
noexcept |
◆ counts_get_normalised()
int64_t toolbox::hdr::Histogram::counts_get_normalised |
( |
std::int32_t |
index | ) |
const |
|
noexcept |
◆ reset()
void toolbox::hdr::Histogram::reset |
( |
| ) |
|
|
noexcept |
Reset a histogram to zero - empty out a histogram and re-initialise it.
If you want to re-use an existing histogram, but reset everything back to zero, this is the routine to use.
Definition at line 199 of file Histogram.cpp.
◆ record_value()
bool toolbox::hdr::Histogram::record_value |
( |
std::int64_t |
value | ) |
|
|
noexcept |
Records a value in the histogram, will round this value of to a precision at or better than the significant_figure specified at construction time.
- Parameters
-
value | Value to add to the histogram. |
- Returns
- false if the value is larger than the highest_trackable_value and can't be recorded, true otherwise.
Definition at line 207 of file Histogram.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
◆ record_values()
bool toolbox::hdr::Histogram::record_values |
( |
std::int64_t |
value, |
|
|
std::int64_t |
count |
|
) |
| |
|
noexcept |
The documentation for this class was generated from the following files: