huge commit
- worked on about everything - grid walker using plugable modules - wifi models - new distributions - worked on geometric data-structures - added typesafe timestamps - worked on grid-building - added sensor-classes - added sensor analysis (step-detection, turn-detection) - offline data reader - many test-cases
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "model/WiFiModel.h"
|
||||
#include "WiFiGridNode.h"
|
||||
#include "../../Assertions.h"
|
||||
#include "../../floorplan/v2/Floorplan.h"
|
||||
|
||||
#include <fstream>
|
||||
|
||||
@@ -16,6 +17,25 @@ class WiFiGridEstimator {
|
||||
|
||||
public:
|
||||
|
||||
|
||||
/**
|
||||
* convenience method
|
||||
*/
|
||||
template <typename Node> static void estimate(Grid<Node>& grid, WiFiModel& mdl, const Floorplan::IndoorMap* im) {
|
||||
|
||||
// list of all APs
|
||||
std::vector<LocatedAccessPoint> aps;
|
||||
for (const Floorplan::Floor* f : im->floors) {
|
||||
for (const Floorplan::AccessPoint* ap : f->accesspoints) {
|
||||
aps.push_back(LocatedAccessPoint(*ap));
|
||||
}
|
||||
}
|
||||
|
||||
// perform estimation
|
||||
estimate(grid, mdl, aps);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* perform a signal-strength estimation for all of the given access points
|
||||
* using the provided signal-strength prediction model.
|
||||
|
||||
Reference in New Issue
Block a user