This class extends std::vector to implement event vectors. For more information, please refer here.
More...
#include <vector.hpp>
|
| 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::Vector_< T >
This class extends std::vector to implement event vectors. For more information, please refer here.
Event vectors inherit all the properties from standard C++ vectors. Events in the vector are stored contiguously.
◆ duration()
Time difference between the last and the first event.
- Returns
- Time difference
◆ mean()
Compute the mean of the events.
- Returns
- An Eventd object containing the mean values of x, y, t, and p attributes.
◆ meanPoint()
template<typename T>
| cv::Point_< ResultType > ev::Vector_< T >::meanPoint |
( |
| ) |
const |
|
inlinenodiscard |
Compute the mean x,y point of the events.
- Returns
- Mean point
◆ meanTime()
Compute the mean time of the events.
- Returns
- Mean time
◆ midTime()
Calculate the midpoint time between the oldest and the newest event.
- Returns
- Midpoint time.
◆ rate()
Compute event rate as the ratio between the number of events and the time difference between the last and the first event.
- Returns
- Event rate
The documentation for this class was generated from the following file:
- modules/containers/include/openev/containers/vector.hpp