A class to measure various statistics of a population. All operations (except iterator insert), are O(1), and the Statistics class uses a minimal, fixed amount of memory (i.e. it does NOT keep a list of all members of its population);.
More...
#include <algorithm>
#include <initializer_list>
#include <limits>
#include <utility>
Go to the source code of this file.
A class to measure various statistics of a population. All operations (except iterator insert), are O(1), and the Statistics class uses a minimal, fixed amount of memory (i.e. it does NOT keep a list of all members of its population);.
◆ operator!=()
Inequality operator.
O(1) complexity.
- Parameters
-
[in] | lhs | left hand population |
[in] | rhs | right hand population |
◆ operator+() [1/2]
Combine two populations.
O(1) complexity.
- Parameters
-
[in] | lhs | first population |
[in] | rhs | second population |
- Returns
- The resulting population
◆ operator+() [2/2]
Adds a measurement to the population.
O(1) complexity.
- Parameters
-
[in] | population | population to add the measurement to |
[in] | measurement | measurement to add |
- Returns
- The resulting population
◆ operator<()
Less than operator.
O(1) complexity.
- Parameters
-
[in] | lhs | left hand population |
[in] | rhs | right hand population |
◆ operator<=()
Less than or equal to operator.
O(1) complexity.
- Parameters
-
[in] | lhs | left hand population |
[in] | rhs | right hand population |
◆ operator==()
Equality operator.
O(1) complexity.
- Parameters
-
[in] | lhs | left hand population
|
[in] | rhs | right hand population |
◆ operator>()
Greater than operator.
O(1) complexity.
- Parameters
-
[in] | lhs | left hand population |
[in] | rhs | right hand population |
◆ operator>=()
Greater than or equal to operator.
O(1) complexity.
- Parameters
-
[in] | lhs | left hand population |
[in] | rhs | right hand population |