15#ifndef TOOLBOX_HDR_UTILITY
16#define TOOLBOX_HDR_UTILITY
61 double value_scale)
noexcept
66template <
typename StreamT>
72 os <<
" Value Percentile TotalCount 1/(1-Percentile)\n\n";
77 const double percentile{
iter.percentile() / 100.0};
80 os << std::format(
"{:12.{}f}", value,
sf);
81 os << std::format(
"{:15.6f}", percentile);
82 os << std::format(
"{:11}", total_count);
84 if (percentile < 1.0) {
97 os <<
"#[Mean = " << std::format(
"{:12.{}f}",
mean_val,
sf)
98 <<
", StdDeviation = " << std::format(
"{:12.{}f}",
stddev_val,
sf)
99 <<
"]\n#[Max = " << std::format(
"{:12.{}f}",
max_val,
sf)
100 <<
", TotalCount = " << std::format(
"{:12}",
total_val)
101 <<
"]\n#[Buckets = " << std::format(
"{:12}",
pp.h.bucket_count())
102 <<
", SubBuckets = " << std::format(
"{:12}",
pp.h.sub_bucket_count())