current code and TeX. code fine?!?!?!

This commit is contained in:
2017-04-29 20:57:12 +02:00
parent fc72a75f57
commit 60712689cf
41 changed files with 804 additions and 234 deletions

9
EvalCompareOpt2.h Normal file → Executable file
View File

@@ -317,6 +317,15 @@ public:
const MACAddress mac(ap->mac);
const std::vector<WiFiFingerprint> fps = getFingerprints(mac);
// ensure a certain number of fingerprints
// otherwise: ignore this AP as it can not be optimized!
if (fps.size() < 3) {
std::cout << "IGNORING " << mac.asString() << " due to insufficient fingerprints! using fixed -100 entry" << std::endl;
res.model.addAP(mac, Point3(0,0,0), -100, 0, 0, false);
//res.model.addAP(mac, pos_m, params[3], params[4], params[5], false);
continue;
}
// resulting error
auto errFunc = [&] (const Point3 pos_m, const float txp, const float exp, const float waf) -> K::Statistics<float> {
WiFiModelLogDistCeiling model(map); // new, empty model for this AP