Added ftm attributes to WiFiMeasurement

This commit is contained in:
2019-06-19 16:05:23 +02:00
parent 09e57292f6
commit 8761dce3ce
5 changed files with 69 additions and 3 deletions

View File

@@ -59,6 +59,10 @@ namespace Stats {
return sum / (double) cnt;
}
T getSquaredSumAvg() const {
return sumSquared / (double)cnt;
}
/** get the given quantile (e.g. 0.5 for median) */
T getQuantile(const double q) const {
if (q < 0) {return *values.begin();}