This class extends boost::circular_buffer to implement event circular buffers. For more information, please refer here.
More...
|
| template<typename... Args> |
| void | emplace_back (Args &&...args) |
| | Construct an Event_<T> in-place at the back of the buffer.
|
| template<typename... Args> |
| void | emplace_front (Args &&...args) |
| | Construct an Event_<T> in-place at the front of the buffer.
|
| ResultType | duration () const |
| | Time difference between the last and the first event.
|
| ResultType | rate () const |
| | Compute event rate as the ratio between the number of events and the time difference between the last and the first event.
|
| Event_< ResultType > | mean () const |
| | Compute the mean of the events.
|
| cv::Point_< ResultType > | meanPoint () const |
| | Compute the mean x,y point of the events.
|
| ResultType | meanTime () const |
| | Compute the mean time of the events.
|
| ResultType | midTime () const |
| | Calculate the midpoint time between the oldest and the newest event.
|
template<typename T>
class ev::CircularBuffer_< T >
This class extends boost::circular_buffer to implement event circular buffers. For more information, please refer here.
Event circular buffers inherit all the properties from boost circular buffers. Circular buffers are fixed-size data structures in a circular fashion (i.e, the end of the buffer is reached, it wraps around to the beginning).