HART  0.2.0
High level Audio Regression and Testing
Loading...
Searching...
No Matches
hart_reducers.hpp File Reference
#include <algorithm>
#include <cmath>
#include <iterator>
#include <vector>
#include "hart_accurate_sum.hpp"
#include "hart_exceptions.hpp"
#include "hart_utils.hpp"
Include dependency graph for hart_reducers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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...
 

Namespaces

namespace  hart
 

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.