added kld with parzen and nv distribution
added new testfiles fixed plot fixed numerical errors
This commit is contained in:
@@ -190,13 +190,13 @@ struct PFEval : public K::ParticleFilterEvaluation<MyState, MyObs> {
|
||||
|
||||
const double pWifi = getWIFI(observation, wifiObs, p.state.position);
|
||||
const double pBaroPressure = getBaroPressure(observation, p.state.relativePressure);
|
||||
const double pBeacon = getBEACON(observation, p.state.position);
|
||||
//const double pBeacon = getBEACON(observation, p.state.position);
|
||||
|
||||
//small checks
|
||||
_assertNotNAN(pWifi, "Wifi prob is nan");
|
||||
_assertNot0(pBaroPressure,"pBaroPressure is null");
|
||||
|
||||
const double prob = pBaroPressure * pBeacon * pWifi;
|
||||
const double prob = pBaroPressure * pWifi;
|
||||
|
||||
p.weight = prob;
|
||||
sum += (prob);
|
||||
|
||||
Reference in New Issue
Block a user