#include <EventCounterData.hpp>
Public Member Functions | |
double | Bin (int n, double p, int r) |
double | Bin (int n, double p, int r) |
float | binaryBayesUpdate (float Pold, float P) |
float | binaryBayesUpdate (float Pold, float P) |
float | computeSemiStaticLikelihood (int N) |
float | computeSemiStaticLikelihood (int N) |
float | computeShortTermOccupancy () |
float | computeShortTermOccupancy () |
double | entryL () |
double | entryL () |
double | exitL () |
double | exitL () |
double | fac (int n) |
double | fac (int n) |
bool | getBit (int ind) |
bool | getBit (int ind) |
int | getEntryN () |
Expected number of observations/event. | |
int | getEntryN () |
Expected number of observations/event. | |
int | getExitN () |
Expected number of observations/event. | |
int | getExitN () |
Expected number of observations/event. | |
float | getFreeStaticLikelihood () |
float | getFreeStaticLikelihood () |
int | getObservations () |
int | getObservations () |
float | getOccStaticLikelihood () |
float | getOccStaticLikelihood () |
float | getOccupancyNow () |
float | getOccupancyNow () |
double | L () |
double | L () |
void | normalizeProb (float &p) |
void | normalizeProb (float &p) |
const TEventData & | operator= (const TEventData ©) |
const TEventData & | operator= (const TEventData ©) |
void | performRecencyFiltering () |
void | performRecencyFiltering () |
float | predictOccupancy (int N) |
float | predictOccupancy (int N) |
void | Reset () |
void | Reset () |
TEventData () | |
A storage for the last 64 events (as bits) | |
TEventData () | |
A storage for the last 64 events (as bits) | |
TEventData (const TEventData ©) | |
TEventData (const TEventData ©) | |
void | updateEntryEvent (uint8_t meas, float w) |
void | updateEntryEvent (uint8_t meas, float w) |
void | updateExitEvent (uint8_t meas, float w) |
void | updateExitEvent (uint8_t meas, float w) |
void | updateSimple (uint8_t meas) |
void | updateSimple (uint8_t meas) |
void | updateSimple (uint8_t meas, float w) |
void | updateSimple (uint8_t meas, float w) |
~TEventData () | |
~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 58 of file EventCounterData.hpp.
TEventData::TEventData | ( | ) | [inline] |
A storage for the last 64 events (as bits)
Definition at line 68 of file EventCounterData.hpp.
TEventData::~TEventData | ( | ) | [inline] |
Definition at line 78 of file EventCounterData.hpp.
TEventData::TEventData | ( | const TEventData & | copy | ) | [inline] |
Definition at line 95 of file EventCounterData.hpp.
TEventData::TEventData | ( | ) | [inline] |
A storage for the last 64 events (as bits)
Definition at line 66 of file EventCounterData.cpp.
TEventData::~TEventData | ( | ) | [inline] |
Definition at line 76 of file EventCounterData.cpp.
TEventData::TEventData | ( | const TEventData & | copy | ) | [inline] |
Definition at line 93 of file EventCounterData.cpp.
double TEventData::Bin | ( | int | n, |
double | p, | ||
int | r | ||
) | [inline] |
Definition at line 299 of file EventCounterData.cpp.
double TEventData::Bin | ( | int | n, |
double | p, | ||
int | r | ||
) | [inline] |
Definition at line 301 of file EventCounterData.hpp.
float TEventData::binaryBayesUpdate | ( | float | Pold, |
float | P | ||
) | [inline] |
< Updated probability
Definition at line 304 of file EventCounterData.cpp.
float TEventData::binaryBayesUpdate | ( | float | Pold, |
float | P | ||
) | [inline] |
< Updated probability
Definition at line 306 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.cpp.
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 377 of file EventCounterData.hpp.
float TEventData::computeShortTermOccupancy | ( | ) | [inline] |
Definition at line 120 of file EventCounterData.cpp.
float TEventData::computeShortTermOccupancy | ( | ) | [inline] |
Definition at line 122 of file EventCounterData.hpp.
double TEventData::entryL | ( | ) | [inline] |
Definition at line 275 of file EventCounterData.cpp.
double TEventData::entryL | ( | ) | [inline] |
Definition at line 277 of file EventCounterData.hpp.
double TEventData::exitL | ( | ) | [inline] |
Definition at line 280 of file EventCounterData.cpp.
double TEventData::exitL | ( | ) | [inline] |
Definition at line 282 of file EventCounterData.hpp.
double TEventData::fac | ( | int | n | ) | [inline] |
Definition at line 291 of file EventCounterData.cpp.
double TEventData::fac | ( | int | n | ) | [inline] |
Definition at line 293 of file EventCounterData.hpp.
bool TEventData::getBit | ( | int | ind | ) | [inline] |
Definition at line 113 of file EventCounterData.cpp.
bool TEventData::getBit | ( | int | ind | ) | [inline] |
Definition at line 115 of file EventCounterData.hpp.
int TEventData::getEntryN | ( | ) | [inline] |
Expected number of observations/event.
Definition at line 264 of file EventCounterData.cpp.
int TEventData::getEntryN | ( | ) | [inline] |
Expected number of observations/event.
Definition at line 266 of file EventCounterData.hpp.
int TEventData::getExitN | ( | ) | [inline] |
Expected number of observations/event.
Definition at line 269 of file EventCounterData.cpp.
int TEventData::getExitN | ( | ) | [inline] |
Expected number of observations/event.
Definition at line 271 of file EventCounterData.hpp.
float TEventData::getFreeStaticLikelihood | ( | ) | [inline] |
Returns the probability of static empty
Definition at line 348 of file EventCounterData.cpp.
float TEventData::getFreeStaticLikelihood | ( | ) | [inline] |
Returns the probability of static empty
Definition at line 350 of file EventCounterData.hpp.
int TEventData::getObservations | ( | ) | [inline] |
Definition at line 145 of file EventCounterData.cpp.
int TEventData::getObservations | ( | ) | [inline] |
Definition at line 147 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.cpp.
float TEventData::getOccStaticLikelihood | ( | ) | [inline] |
77 Compute different probabilities for the cell Compute the probability of this cell being Static occupied.
Definition at line 327 of file EventCounterData.hpp.
float TEventData::getOccupancyNow | ( | ) | [inline] |
Definition at line 404 of file EventCounterData.cpp.
float TEventData::getOccupancyNow | ( | ) | [inline] |
Definition at line 406 of file EventCounterData.hpp.
double TEventData::L | ( | ) | [inline] |
Definition at line 285 of file EventCounterData.cpp.
double TEventData::L | ( | ) | [inline] |
Definition at line 287 of file EventCounterData.hpp.
void TEventData::normalizeProb | ( | float & | p | ) | [inline] |
To prevent numerical difficulties
Definition at line 312 of file EventCounterData.cpp.
void TEventData::normalizeProb | ( | float & | p | ) | [inline] |
To prevent numerical difficulties
Definition at line 314 of file EventCounterData.hpp.
const TEventData& TEventData::operator= | ( | const TEventData & | copy | ) | [inline] |
Definition at line 81 of file EventCounterData.cpp.
const TEventData& TEventData::operator= | ( | const TEventData & | copy | ) | [inline] |
Definition at line 83 of file EventCounterData.hpp.
void TEventData::performRecencyFiltering | ( | ) | [inline] |
We are in Exit state
Definition at line 201 of file EventCounterData.cpp.
void TEventData::performRecencyFiltering | ( | ) | [inline] |
We are in Exit state
Definition at line 203 of file EventCounterData.hpp.
float TEventData::predictOccupancy | ( | int | N | ) | [inline] |
float TEventData::predictOccupancy | ( | int | N | ) | [inline] |
void TEventData::Reset | ( | ) | [inline] |
Definition at line 104 of file EventCounterData.cpp.
void TEventData::Reset | ( | ) | [inline] |
Definition at line 106 of file EventCounterData.hpp.
void TEventData::updateEntryEvent | ( | uint8_t | meas, |
float | w | ||
) | [inline] |
void TEventData::updateEntryEvent | ( | uint8_t | meas, |
float | w | ||
) | [inline] |
void TEventData::updateExitEvent | ( | 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.cpp.
void TEventData::updateSimple | ( | uint8_t | meas | ) | [inline] |
Updates a new measurement
OCC
cell is considered Occupied
Just update
Definition at line 155 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.cpp.
void TEventData::updateSimple | ( | uint8_t | meas, |
float | w | ||
) | [inline] |
Updates a new measurement
OCC
cell is considered Occupied
Just update
Definition at line 179 of file EventCounterData.hpp.
Number of times the cell is perceived as occupied.
Definition at line 64 of file EventCounterData.hpp.
float TEventData::a_exit_event |
Definition at line 61 of file EventCounterData.hpp.
Definition at line 65 of file EventCounterData.hpp.
float TEventData::b_exit_event |
Number of exit events ( OCC 2 EMP)
Definition at line 62 of file EventCounterData.hpp.
uint64_t TEventData::events |
Number of times the cell is perceived as empty.
Definition at line 66 of file EventCounterData.hpp.
uint8_t TEventData::occval |
Occupancy value.
Definition at line 60 of file EventCounterData.hpp.