10#include "numeric_traits.hpp"
24template <
typename NumericTraits = default_numeric_traits>
44 return s <<
"datapoint(" << e.value <<
')';
55template <
typename NumericTraits = default_numeric_traits>
70 return s <<
"bin_increment(" << e.bin_index <<
')';
84template <
typename NumericTraits = default_numeric_traits>
100 return s <<
"bin_increment_cluster(" << e.bin_indices <<
')';
114template <
typename NumericTraits = default_numeric_traits>
129 return s <<
"histogram(" << e.data_bucket <<
')';
145template <
typename NumericTraits = default_numeric_traits>
161 return s <<
"concluding_histogram(" << e.data_bucket <<
')';
172template <
typename NumericTraits = default_numeric_traits>
187 return s <<
"histogram_array(" << e.data_bucket <<
')';
201template <
typename NumericTraits = default_numeric_traits>
226 return s <<
"histogram_array_progress(" << e.valid_size <<
", "
227 << e.data_bucket <<
')';
244template <
typename NumericTraits = default_numeric_traits>
261 return s <<
"concluding_histogram_array(" << e.data_bucket <<
')';
Value-semantic container for array data allowing use of custom storage.
Definition bucket.hpp:110
libtcspc namespace.
Definition acquire.hpp:30
Event representing a cluster of data points binned for histogramming.
Definition histogram_events.hpp:85
friend auto operator<<(std::ostream &s, bin_increment_cluster_event const &e) -> std::ostream &
Stream insertion operator for bin_increment_cluster_event.
Definition histogram_events.hpp:97
bucket< typename NumericTraits::bin_index_type > bin_indices
The bin indices for the datapoints in the cluster.
Definition histogram_events.hpp:89
friend auto operator==(bin_increment_cluster_event const &lhs, bin_increment_cluster_event const &rhs) noexcept -> bool=default
Equality comparison operator.
Event representing data binned for histogramming.
Definition histogram_events.hpp:56
friend auto operator<<(std::ostream &s, bin_increment_event const &e) -> std::ostream &
Stream insertion operator.
Definition histogram_events.hpp:68
friend constexpr auto operator==(bin_increment_event const &lhs, bin_increment_event const &rhs) noexcept -> bool=default
Equality comparison operator.
NumericTraits::bin_index_type bin_index
The histogram bin index to which the data value was mapped.
Definition histogram_events.hpp:60
Event representing the final result of accumulation of a histogram array.
Definition histogram_events.hpp:245
friend auto operator==(concluding_histogram_array_event const &lhs, concluding_histogram_array_event const &rhs) noexcept -> bool=default
Equality comparison operator.
bucket< typename NumericTraits::bin_type > data_bucket
View of the histogram array.
Definition histogram_events.hpp:249
friend auto operator<<(std::ostream &s, concluding_histogram_array_event const &e) -> std::ostream &
Stream insertion operator.
Definition histogram_events.hpp:258
Event representing the final result of histogramming.
Definition histogram_events.hpp:146
bucket< typename NumericTraits::bin_type > data_bucket
The accumulated histogram.
Definition histogram_events.hpp:150
friend auto operator<<(std::ostream &s, concluding_histogram_event const &e) -> std::ostream &
Stream insertion operator.
Definition histogram_events.hpp:158
friend auto operator==(concluding_histogram_event const &lhs, concluding_histogram_event const &rhs) noexcept -> bool=default
Equality comparison operator.
Event representing a datapoint for histogramming.
Definition histogram_events.hpp:25
datapoint_type value
The datapoint value.
Definition histogram_events.hpp:34
NumericTraits::datapoint_type datapoint_type
The data type.
Definition histogram_events.hpp:29
friend auto operator<<(std::ostream &s, datapoint_event const &e) -> std::ostream &
Stream insertion operator.
Definition histogram_events.hpp:42
friend constexpr auto operator==(datapoint_event const &lhs, datapoint_event const &rhs) noexcept -> bool=default
Equality comparison operator.
Event representing an array of histograms.
Definition histogram_events.hpp:173
friend auto operator==(histogram_array_event const &lhs, histogram_array_event const &rhs) noexcept -> bool=default
Equality comparison operator.
friend auto operator<<(std::ostream &s, histogram_array_event const &e) -> std::ostream &
Stream insertion operator.
Definition histogram_events.hpp:185
bucket< typename NumericTraits::bin_type > data_bucket
Histogram array, or view thereof.
Definition histogram_events.hpp:177
Event representing a progress update of a histogram array.
Definition histogram_events.hpp:202
bucket< typename NumericTraits::bin_type > data_bucket
View of the histogram array.
Definition histogram_events.hpp:215
friend auto operator<<(std::ostream &s, histogram_array_progress_event const &e) -> std::ostream &
Stream insertion operator.
Definition histogram_events.hpp:223
friend auto operator==(histogram_array_progress_event const &lhs, histogram_array_progress_event const &rhs) noexcept -> bool=default
Equality comparison operator.
std::size_t valid_size
Size of the updated part of the histogram array.
Definition histogram_events.hpp:206
Event representing a single histogram.
Definition histogram_events.hpp:115
bucket< typename NumericTraits::bin_type > data_bucket
The histogram.
Definition histogram_events.hpp:119
friend auto operator==(histogram_event const &lhs, histogram_event const &rhs) noexcept -> bool=default
Equality comparison operator.
friend auto operator<<(std::ostream &s, histogram_event const &e) -> std::ostream &
Stream insertion operator.
Definition histogram_events.hpp:127