Multivariate Point Process Package
0.1
|
Sequence encapsulates the operations on a sequence of events. More...
#include "include/Sequence.h"
Public Member Functions | |
Sequence (const double &T) | |
Sequence () | |
void | Add (const Event &event) |
Add a new event to the current sequence. More... | |
const std::vector< Event > & | GetEvents () const |
Return a constant reference to the sequence of event. More... | |
double | GetTimeWindow () const |
Return the observation window. More... | |
void | SetTimeWindow (const double &T) |
Update the current observation window. More... | |
void | PopBack () |
Get rid of the last event in the current sequence. More... | |
Sequence encapsulates the operations on a sequence of events.
Definition at line 16 of file Sequence.h.
|
inline |
The constructor.
[in] | T | observation window of the sequence. |
Definition at line 38 of file Sequence.h.
|
inline |
Definition at line 39 of file Sequence.h.
|
inline |
Add a new event to the current sequence.
event | a given new event. |
If the current maximum time is greater than the predefined observation time window, we update the time window to the maximum event time observed so far.
Definition at line 45 of file Sequence.h.
|
inline |
Return a constant reference to the sequence of event.
Definition at line 58 of file Sequence.h.
|
inline |
Return the observation window.
Definition at line 64 of file Sequence.h.
|
inline |
Get rid of the last event in the current sequence.
Definition at line 75 of file Sequence.h.
|
inline |
Update the current observation window.
T | new observation window. |
Definition at line 70 of file Sequence.h.