The main storage for information about a trajectory. More...
#include <Trajectory.h>
Public Member Functions | |
| CTrajectory () | |
| Default constructor. More... | |
| CTrajectory (int id, int nDimensions) | |
| Constructor with id and dimension parameters. More... | |
| void | SetId (int id) |
| Set the trajectory id of this trajectory. | |
| const int | GetId () const |
| Return the trajectory id of this trajectory. | |
| void | AddPointToArray (CMDPoint point) |
| Add a CMDPoint point to the array of trajectory points. | |
| void | AddPartitionPointToArray (CMDPoint point, int index) |
| Add a point to the array of partition points. | |
| void | StorePartitionInfo (PartitionInfo info) |
| Add the PartitionInfo object info to the array of partition information. | |
| void | SetLength (float length) |
| Setter for total partition length. | |
| const float | GetLength () const |
| Getter for total partition length. | |
| void | SetOutlyingLength (float length) |
| Setter for outlying partition length. | |
| const float | GetOutlyingLength () const |
| Getter for outlying partition length. | |
| const int | GetNumOutlyingPartition () const |
| Getter for number of outlying partitions. | |
| const vector< CMDPoint > | GetPointArray () const |
| Getter for trajectory point array. | |
| const vector< CMDPoint > | GetPartitionPointArray () const |
| Getter for partition point array. | |
| void | AddOutlyingPartition (int index) |
| Add an outlying partition to the array of outlying partitions. | |
| pair< CMDPoint *, CMDPoint * > | GetOutlyingPartition (int nth) |
| Get the nth outlying partition in this trajectory. More... | |
Private Attributes | |
| int | m_trajectoryId |
| int | m_nDimensions |
| int | m_nPoints |
| vector< CMDPoint > | m_pointArray |
| int | m_nPartitionPoints |
| vector< CMDPoint > | m_partitionPointArray |
| vector< int > | m_partitionIndexArray |
| vector< PartitionInfo > | m_partitionInfoArray |
| float | m_totalPartitionLength |
| float | m_outlyingPartitionLength |
| int | m_nOutlyingPartitions |
| vector< int > | m_outlyingPartitionArray |
| int | m_nPenWidth |
| bool | m_containOutlier |
Friends | |
| class | COutlierDetector |
| class | CDistanceOutlier |
The main storage for information about a trajectory.
Represents a trajectory in the dataset, including its partitioning.
| CTrajectory::CTrajectory | ( | ) |
Default constructor.
Sets the trajectory ID to -1 and the number of dimensions to 2.
| CTrajectory::CTrajectory | ( | int | id, |
| int | nDimensions | ||
| ) |
Constructor with id and dimension parameters.
| [in] | id | the trajectory ID |
| [in] | nDimensions | the number of dimensions for the points in the trajectory (typically 2) |
Get the nth outlying partition in this trajectory.
| [in] | nth | Which outlying partition of the trajectory to return |
1.8.6