#include <EventCounterData.hpp>
Public Member Functions | |
double | Bin (int n, double p, int r) |
float | binaryBayesUpdate (float Pold, float P) |
float | computeSemiStaticLikelihood (int N) |
float | computeShortTermOccupancy () |
double | entryL () |
double | exitL () |
double | fac (int n) |
bool | getBit (int ind) |
int | getEntryN () |
Expected number of observations/event. | |
int | getExitN () |
Expected number of observations/event. | |
float | getFreeStaticLikelihood () |
int | getObservations () |
float | getOccStaticLikelihood () |
float | getOccupancyNow () |
double | L () |
void | normalizeProb (float &p) |
const TEventData & | operator= (const TEventData ©) |
void | performRecencyFiltering () |
float | predictOccupancy (int N) |
void | Reset () |
TEventData () | |
A storage for the last 64 events (as bits) | |
TEventData (const TEventData ©) | |
void | updateEntryEvent (uint8_t meas, float w) |
void | updateExitEvent (uint8_t meas, float w) |
void | updateSimple (uint8_t meas) |
void | updateSimple (uint8_t meas, float w) |
~TEventData () | |
Public Attributes | |
float | a_entry_event |
Number of times the cell is perceived as occupied. | |
float | a_exit_event |
float | b_entry_event |
float | b_exit_event |
Number of exit events ( OCC 2 EMP) | |
uint64_t | events |
Number of times the cell is perceived as empty. | |
uint8_t | occval |
Occupancy value. |
Structure in the map
Definition at line 56 of file EventCounterData.hpp.
TEventData::TEventData | ( | ) | [inline] |
A storage for the last 64 events (as bits)
Definition at line 66 of file EventCounterData.hpp.
TEventData::~TEventData | ( | ) | [inline] |
Definition at line 76 of file EventCounterData.hpp.
TEventData::TEventData | ( | const TEventData & | copy | ) | [inline] |
Definition at line 93 of file EventCounterData.hpp.
double TEventData::Bin | ( | int | n, |
double | p, | ||
int | r | ||
) | [inline] |
Definition at line 299 of file EventCounterData.hpp.
float TEventData::binaryBayesUpdate | ( | float | Pold, |
float | P | ||
) | [inline] |
< Updated probability
Definition at line 304 of file EventCounterData.hpp.
float TEventData::computeSemiStaticLikelihood | ( | int | N | ) | [inline] |
Returns the probability of the cell having dynamics after 2^N Observations. The larger the N, and higher the value, the more "Semi-static" is the cell. Note that the filter returns 0.5 >= P <=1.0 and P = 0.0 only if there is not enough evidence about the Behaviour
Definition at line 375 of file EventCounterData.hpp.
float TEventData::computeShortTermOccupancy | ( | ) | [inline] |
Definition at line 120 of file EventCounterData.hpp.
double TEventData::entryL | ( | ) | [inline] |
Definition at line 275 of file EventCounterData.hpp.
double TEventData::exitL | ( | ) | [inline] |
Definition at line 280 of file EventCounterData.hpp.
double TEventData::fac | ( | int | n | ) | [inline] |
Definition at line 291 of file EventCounterData.hpp.
bool TEventData::getBit | ( | int | ind | ) | [inline] |
Definition at line 113 of file EventCounterData.hpp.
int TEventData::getEntryN | ( | ) | [inline] |
Expected number of observations/event.
Definition at line 264 of file EventCounterData.hpp.
int TEventData::getExitN | ( | ) | [inline] |
Expected number of observations/event.
Definition at line 269 of file EventCounterData.hpp.
float TEventData::getFreeStaticLikelihood | ( | ) | [inline] |
Returns the probability of static empty
Definition at line 348 of file EventCounterData.hpp.
int TEventData::getObservations | ( | ) | [inline] |
Definition at line 145 of file EventCounterData.hpp.
float TEventData::getOccStaticLikelihood | ( | ) | [inline] |
77 Compute different probabilities for the cell Compute the probability of this cell being Static occupied.
Definition at line 325 of file EventCounterData.hpp.
float TEventData::getOccupancyNow | ( | ) | [inline] |
Definition at line 404 of file EventCounterData.hpp.
double TEventData::L | ( | ) | [inline] |
Definition at line 285 of file EventCounterData.hpp.
void TEventData::normalizeProb | ( | float & | p | ) | [inline] |
To prevent numerical difficulties
Definition at line 312 of file EventCounterData.hpp.
const TEventData& TEventData::operator= | ( | const TEventData & | copy | ) | [inline] |
Definition at line 81 of file EventCounterData.hpp.
void TEventData::performRecencyFiltering | ( | ) | [inline] |
We are in Exit state
Definition at line 201 of file EventCounterData.hpp.
float TEventData::predictOccupancy | ( | int | N | ) | [inline] |
void TEventData::Reset | ( | ) | [inline] |
Definition at line 104 of file EventCounterData.hpp.
void TEventData::updateEntryEvent | ( | uint8_t | meas, |
float | w | ||
) | [inline] |
void TEventData::updateExitEvent | ( | uint8_t | meas, |
float | w | ||
) | [inline] |
void TEventData::updateSimple | ( | uint8_t | meas | ) | [inline] |
Updates a new measurement
OCC
cell is considered Occupied
Just update
Definition at line 153 of file EventCounterData.hpp.
void TEventData::updateSimple | ( | uint8_t | meas, |
float | w | ||
) | [inline] |
Updates a new measurement
OCC
cell is considered Occupied
Just update
Definition at line 177 of file EventCounterData.hpp.
Number of times the cell is perceived as occupied.
Definition at line 62 of file EventCounterData.hpp.
float TEventData::a_exit_event |
Definition at line 59 of file EventCounterData.hpp.
Definition at line 63 of file EventCounterData.hpp.
float TEventData::b_exit_event |
Number of exit events ( OCC 2 EMP)
Definition at line 60 of file EventCounterData.hpp.
uint64_t TEventData::events |
Number of times the cell is perceived as empty.
Definition at line 64 of file EventCounterData.hpp.
uint8_t TEventData::occval |
Occupancy value.
Definition at line 58 of file EventCounterData.hpp.