mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 17:30:37 +02:00
start MinMaxAvg at default, not numeric limit
This commit is contained in:
parent
055fabf57b
commit
96e9399b89
1 changed files with 4 additions and 4 deletions
|
@ -21,16 +21,16 @@ template <typename T>
|
||||||
class MinMaxAvg {
|
class MinMaxAvg {
|
||||||
public:
|
public:
|
||||||
MinMaxAvg()
|
MinMaxAvg()
|
||||||
: _min(std::numeric_limits<T>::max()),
|
: _min(T()),
|
||||||
_max(std::numeric_limits<T>::min()),
|
_max(T()),
|
||||||
_average(0.0),
|
_average(0.0),
|
||||||
_samples(0),
|
_samples(0),
|
||||||
_last(0)
|
_last(0)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void reset() {
|
void reset() {
|
||||||
_min = std::numeric_limits<T>::max();
|
_min = T();
|
||||||
_max = std::numeric_limits<T>::min();
|
_max = T();
|
||||||
_average = 0.0;
|
_average = 0.0;
|
||||||
_samples = 0;
|
_samples = 0;
|
||||||
_last = 0;
|
_last = 0;
|
||||||
|
|
Loading…
Reference in a new issue