Class to collect averages.
More...
#include <average.h>
|
|
std::ostream & | operator<< (std::ostream &stream, const Average &average) |
| |
template<std::floating_point value_type = double, std::unsigned_integral counter_type = unsigned long int>
class Faunus::Average< value_type, counter_type >
Class to collect averages.
- Todo:
- replace static assert w.
concept in c++20
◆ add()
template<std::floating_point value_type = double, std::unsigned_integral counter_type = unsigned long int>
| void Faunus::Average< value_type, counter_type >::add |
( |
const value_type |
value | ) |
|
|
inline |
Add value to average.
- Parameters
-
- Exceptions
-
| If | overflow in either the counter, or sum of squared values |
◆ operator+()
template<std::floating_point value_type = double, std::unsigned_integral counter_type = unsigned long int>
| auto Faunus::Average< value_type, counter_type >::operator+ |
( |
const Average< value_type, counter_type > & |
other | ) |
const |
|
inline |
Merge two averages with correct weights.
- Parameters
-
- Returns
- Merged average
- Exceptions
-
◆ operator+=()
template<std::floating_point value_type = double, std::unsigned_integral counter_type = unsigned long int>
Add value to average.
- Parameters
-
- Exceptions
-
| If | overflow in either the counter, or sum of squared values |
The documentation for this class was generated from the following file: