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 144 of file kinect_2d_scanner_node.cpp.
CSimpleRateEstimator::CSimpleRateEstimator | ( | const double | smooth_factor = 0.99 | ) | [inline] |
Definition at line 147 of file kinect_2d_scanner_node.cpp.
double CSimpleRateEstimator::getEstimatedRate | ( | ) | const [inline] |
Retrieve rate estimate (in Hz)
Definition at line 167 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 157 of file kinect_2d_scanner_node.cpp.
double CSimpleRateEstimator::m_alpha [private] |
Definition at line 173 of file kinect_2d_scanner_node.cpp.
double CSimpleRateEstimator::m_alpha_comp [private] |
Definition at line 173 of file kinect_2d_scanner_node.cpp.
int CSimpleRateEstimator::m_count [private] |
Definition at line 170 of file kinect_2d_scanner_node.cpp.
double CSimpleRateEstimator::m_last_tim [private] |
Definition at line 172 of file kinect_2d_scanner_node.cpp.
double CSimpleRateEstimator::m_rate_est [private] |
Definition at line 171 of file kinect_2d_scanner_node.cpp.
mrpt::utils::CTicTac CSimpleRateEstimator::m_tictac [private] |
Definition at line 174 of file kinect_2d_scanner_node.cpp.