HART  0.2.0
High level Audio Regression and Testing
Loading...
Searching...
No Matches
Reducers

Helper functions to reduce multi-channel metrics to a single scalar. More...

Classes

struct  allFloatsEqualToEachOther
 Returns true if all the values in the range are equal to each other within provided tolerance, false otherwise. More...
 
struct  allFloatsEqualTo
 Returns true if all the values in the range are equal to a specific value within provided tolerance, false otherwise. More...
 
struct  anyNaN
 Returns true if at least one element in the range is NaN More...
 
struct  allNaN
 Returns true if all elements in the range are NaN More...
 
struct  argmax
 Returns the zero-based index of the largest element in the range. More...
 
struct  argmin
 Returns the zero-based index of the smallest element in the range. More...
 
struct  collect
 Forwards the entire range as an std::vector, preserving the original order. More...
 
struct  first
 Returns the first element in the range. More...
 
struct  last
 Returns the last element in the range. More...
 
struct  max
 Returns the largest element in the range. More...
 
struct  mean
 Returns the arithmetic mean of all elements in the range. More...
 
struct  min
 Returns the smallest element in the range. More...
 
struct  nth
 Returns the nth element in the range (zero-based) More...
 
struct  percentile
 Returns the percentile value. More...
 
struct  range
 Returns the difference between largest and smallest values in the range. More...
 
struct  size
 Returns the number of elements (values) in the range. More...
 
struct  sum
 Returns the sum of all elements in the range. More...
 

Typedefs

template<typename IteratorType >
using IteratedValueType = typename std::iterator_traits< IteratorType >::value_type
 Value of the elements in a range that reducer is supposed to reduce.
 

Detailed Description

Helper functions to reduce multi-channel metrics to a single scalar.

Typedef Documentation

◆ IteratedValueType

template<typename IteratorType >
using IteratedValueType = typename std::iterator_traits<IteratorType>::value_type

Value of the elements in a range that reducer is supposed to reduce.

Definition at line 21 of file hart_reducers.hpp.