worked on wifi-scanner for linux
new time-grouping for vap grouper adjusted test-cases minor changes/fixes/improvements
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Stats {
|
||||
public:
|
||||
|
||||
/** ctor */
|
||||
Average() : cnt(0), sum(0) {
|
||||
Average() : cnt(0), sum() {
|
||||
;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace Stats {
|
||||
/** get the current value */
|
||||
Scalar get() const {
|
||||
Assert::isNot0(cnt, "add() values first!");
|
||||
return sum / (Scalar)cnt;
|
||||
return sum / cnt;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#define STATS_MAXIMUM_H
|
||||
|
||||
#include "../../Assertions.h"
|
||||
#include <limits>
|
||||
|
||||
namespace Stats {
|
||||
|
||||
@@ -9,7 +10,7 @@ namespace Stats {
|
||||
|
||||
private:
|
||||
|
||||
const Scalar START = -99999999;
|
||||
const Scalar START = std::numeric_limits<Scalar>::lowest();
|
||||
Scalar curMax;
|
||||
|
||||
public:
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
#ifndef STATS_MINIMUM_H
|
||||
#define STATS_MINIMUM_H
|
||||
|
||||
#include <limits>
|
||||
|
||||
namespace Stats {
|
||||
|
||||
template <typename Scalar> class Minimum {
|
||||
|
||||
private:
|
||||
|
||||
const Scalar START = +999999999;
|
||||
const Scalar START = std::numeric_limits<Scalar>::max();
|
||||
Scalar curMin;
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user