Public Member Functions | Private Attributes
CSimpleRateEstimator Class Reference

List of all members.

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

Detailed Description

Simple first-order low-pass filter estimator of event rates.

Definition at line 144 of file kinect_2d_scanner_node.cpp.


Constructor & Destructor Documentation

CSimpleRateEstimator::CSimpleRateEstimator ( const double  smooth_factor = 0.99) [inline]

Definition at line 147 of file kinect_2d_scanner_node.cpp.


Member Function Documentation

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.


Member Data Documentation

Definition at line 173 of file kinect_2d_scanner_node.cpp.

Definition at line 173 of file kinect_2d_scanner_node.cpp.

Definition at line 170 of file kinect_2d_scanner_node.cpp.

Definition at line 172 of file kinect_2d_scanner_node.cpp.

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.


The documentation for this class was generated from the following file:


kinect_2d_scanner
Author(s): Jose Luis Blanco
autogenerated on Sun Aug 3 2014 10:29:49