The grid cell's model updates probabilities as an average value. More...
#include <tiny_grid_cells.h>

Public Member Functions | |
| AvgTinyCell () | |
| void | set_value (const Occupancy &value, double quality) override |
| double | value () const override |
Private Attributes | |
| double | _cnt |
| double | _n |
The grid cell's model updates probabilities as an average value.
The probability is updated by the following rule:
Definition at line 73 of file tiny_grid_cells.h.
| AvgTinyCell::AvgTinyCell | ( | ) | [inline] |
Sets the values of the probability
and
.
Definition at line 78 of file tiny_grid_cells.h.
| void AvgTinyCell::set_value | ( | const Occupancy & | value, |
| double | quality | ||
| ) | [inline, override, virtual] |
Merges a given probability with the stored one as an average value of all given probabilities also using a quality as a weight.
| [in] | value | - a value of the probability . |
| [in] | quality | - the quality of the experiment value . |
Implements GridCell.
Definition at line 89 of file tiny_grid_cells.h.
| double AvgTinyCell::value | ( | ) | const [inline, override, virtual] |
Returns the estimated probability.
Implements GridCell.
Definition at line 82 of file tiny_grid_cells.h.
double AvgTinyCell::_cnt [private] |
Definition at line 94 of file tiny_grid_cells.h.
double AvgTinyCell::_n [private] |
Definition at line 94 of file tiny_grid_cells.h.