template<typename T, typename Allocator = std::allocator<std::pair<T, T>>>
struct edsp::statistics::histogram< T, Allocator >
Histogram density estimator.
The histogram density estimator returns a histogram of the sample distribution. The positions and sizes of the bins are determined using a specifiable number of cached samples (cache_size). The range between the minimum and the maximum of the cached samples is subdivided into a specifiable number of bins (num_bins) of same size.
- Template Parameters
-
T | Type of element. |
Allocator | Allocator type, defaults to std::allocator<std::pair<T, T>>. |
template<typename T , typename Allocator = std::allocator<std::pair<T, T>>>
template<typename InIterator , typename OutputIt >
Computes the histogram of the range [first, last).
Compute a range of std::pair, where each pair contains the position of the bin (lower bound) and the samples count (normalized with the total number of samples).
- Parameters
-
first | Input iterator defining the begin of the range to examine. |
last | Input iterator defining the end of the range to examine. |
out | Output iterator containing the pairs (bin/sample). |