current code and TeX. code fine?!?!?!
This commit is contained in:
9
EvalCompareOpt2.h
Normal file → Executable file
9
EvalCompareOpt2.h
Normal file → Executable 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
|
||||
|
||||
Reference in New Issue
Block a user