|
Dynamical System Framework
|
Public Member Functions | |
| void | addCluster (PointsCluster &&cluster) |
| Add a PointsCluster to the trajectory. | |
| void | addCluster (PointsCluster const &cluster) |
| void | addPoint (std::time_t timestamp, dsf::geometry::Point const &point) |
| Add a point with timestamp to the trajectory. | |
| void | filter (double const cluster_radius_km, double const max_speed_kph) |
| Filter the trajectory to identify stop points based on clustering and speed criteria. | |
| void | sort () noexcept |
| Sort the trajectory points by timestamp. | |
| std::size_t | size () const noexcept |
| Get the number of points in the trajectory. | |
| bool | empty () const noexcept |
| Check if the trajectory is empty. | |
| auto const & | points () const noexcept |
| Get the underlying points map. | |
| void dsf::mdt::Trajectory::addCluster | ( | PointsCluster && | cluster | ) |
Add a PointsCluster to the trajectory.
| cluster | The PointsCluster to add. |
| void dsf::mdt::Trajectory::addPoint | ( | std::time_t | timestamp, |
| dsf::geometry::Point const & | point ) |
Add a point with timestamp to the trajectory.
| timestamp | The timestamp of the activity point. |
| point | The geometric point of the activity point. |
|
inlinenoexcept |
Check if the trajectory is empty.
| void dsf::mdt::Trajectory::filter | ( | double const | cluster_radius_km, |
| double const | max_speed_kph ) |
Filter the trajectory to identify stop points based on clustering and speed criteria.
| cluster_radius_km | The radius (in kilometers) to use for clustering points. |
| max_speed_kph | The max allowed speed (in km/h) to consider a cluster as a stop point. |
|
inlinenoexcept |
Get the underlying points map.
|
inlinenoexcept |
Get the number of points in the trajectory.