current TeX

minor code changes
This commit is contained in:
2017-05-06 17:32:40 +02:00
parent 2438080389
commit edd41293c1
12 changed files with 650 additions and 132 deletions

View File

@@ -32,6 +32,7 @@
#include "../plots/PlotErrTime.h"
#include "../plots/PlotErrFunc.h"
#include "../plots/PlotWiFiGroundProb.h"
#include "../WalkResult.h"
//#include "CSV.h"
#include <unordered_set>
@@ -142,12 +143,16 @@ public:
}
}
void walk(const std::string& fPath, const std::vector<int> gtIndices) {
WalkResult walk(const std::string& fPath, const std::vector<int> gtIndices) {
static PlotErrTime pet_m("","",""); pet_m.clear();
static PlotErrTime pet_p("","",""); pet_p.clear();
Offline::FileReader reader(fPath);
WalkResult res;
const Offline::FileReader::GroundTruth gtp = reader.getGroundTruth(map, gtIndices);
// process each wifi entry within the offline file
@@ -233,6 +238,15 @@ public:
stats_m->add(err_m);
pet_m.addErr(ts, err_m, idx);
// remember
WalkResult::Entry e;
e.ts = ts;
e.estimation = curEst;
e.groundTruth = gt;
e.err = err_m;
res.entries.push_back(e);
// error in -log(p)
float gtFloat[3] = {gt.x, gt.y, gt.z};
const double probOnGT = -func(gtFloat);
@@ -255,6 +269,8 @@ public:
}
return res;
}
};