This class extends std::vector to implement event vectors. For more information, please refer here.
More...
#include <vector.hpp>
|
template<std::size_t N> |
void | push_back (const Array_< T, N > &array) |
| Push back elements from an array of events.
|
|
void | push_back (Queue_< T > &queue, const bool keep_events_in_queue=false) |
| Push back elements from a queue of events.
|
|
double | duration () const |
| Time difference between the last and the first event in the vector.
|
|
double | rate () const |
| Compute event rate as the ratio between the number of events and the time difference between the last and the first event in the vector.
|
|
Eventd | mean () const |
| Compute the mean of the events in the vector.
|
|
double | meanTime () const |
| Compute the mean time of the events in the vector.
|
|
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.
- Examples
- example-davis.cpp.
◆ duration()
Time difference between the last and the first event in the vector.
- Returns
- Time difference
◆ mean()
Compute the mean of the events in the vector.
- Returns
- An Eventd object containing the mean values of x, y, t, and p attributes.
◆ meanTime()
Compute the mean time of the events in the vector.
- Returns
- Mean time
◆ push_back() [1/2]
template<typename T >
template<std::size_t N>
Push back elements from an array of events.
- Parameters
-
array | Event array to push back |
◆ push_back() [2/2]
template<typename T >
void ev::Vector_< T >::push_back |
( |
Queue_< T > & | queue, |
|
|
const bool | keep_events_in_queue = false ) |
|
inline |
Push back elements from a queue of events.
- Parameters
-
queue | Event queue to push back |
keep_events_in_queue | If true, events are reinserted in the queue |
◆ rate()
Compute event rate as the ratio between the number of events and the time difference between the last and the first event in the vector.
- Returns
- Event rate
The documentation for this class was generated from the following file:
- modules/containers/include/openev/containers/vector.hpp