Public Member Functions | |
CSimpleRateEstimator (const double smooth_factor=0.99) | |
double | getEstimatedRate () const |
void | tick () |
Private Attributes | |
double | m_alpha |
double | m_alpha_comp |
int | m_count |
double | m_last_tim |
double | m_rate_est |
mrpt::utils::CTicTac | m_tictac |
Simple first-order low-pass filter estimator of event rates.
Definition at line 150 of file kinect_2d_scanner_node.cpp.
CSimpleRateEstimator::CSimpleRateEstimator | ( | const double | smooth_factor = 0.99 | ) | [inline] |
Definition at line 153 of file kinect_2d_scanner_node.cpp.
double CSimpleRateEstimator::getEstimatedRate | ( | ) | const [inline] |
Retrieve rate estimate (in Hz)
Definition at line 173 of file kinect_2d_scanner_node.cpp.
void CSimpleRateEstimator::tick | ( | ) | [inline] |
Do a 'tick', that is, signal that the event whatever just happened
Definition at line 163 of file kinect_2d_scanner_node.cpp.
double CSimpleRateEstimator::m_alpha [private] |
Definition at line 179 of file kinect_2d_scanner_node.cpp.
double CSimpleRateEstimator::m_alpha_comp [private] |
Definition at line 179 of file kinect_2d_scanner_node.cpp.
int CSimpleRateEstimator::m_count [private] |
Definition at line 176 of file kinect_2d_scanner_node.cpp.
double CSimpleRateEstimator::m_last_tim [private] |
Definition at line 178 of file kinect_2d_scanner_node.cpp.
double CSimpleRateEstimator::m_rate_est [private] |
Definition at line 177 of file kinect_2d_scanner_node.cpp.
mrpt::utils::CTicTac CSimpleRateEstimator::m_tictac [private] |
Definition at line 180 of file kinect_2d_scanner_node.cpp.