Trajectory Outlier Detection Library
 All Classes Functions Variables Pages
Public Member Functions | Private Attributes | Friends | List of all members
CTrajectory Class Reference

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< CMDPointGetPointArray () const
 Getter for trajectory point array.
 
const vector< CMDPointGetPartitionPointArray () 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< CMDPointm_pointArray
 
int m_nPartitionPoints
 
vector< CMDPointm_partitionPointArray
 
vector< int > m_partitionIndexArray
 
vector< PartitionInfom_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
 

Detailed Description

The main storage for information about a trajectory.

Represents a trajectory in the dataset, including its partitioning.

Constructor & Destructor Documentation

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.

Parameters
[in]idthe trajectory ID
[in]nDimensionsthe number of dimensions for the points in the trajectory (typically 2)

Member Function Documentation

pair< CMDPoint *, CMDPoint * > CTrajectory::GetOutlyingPartition ( int  nth)

Get the nth outlying partition in this trajectory.

Parameters
[in]nthWhich outlying partition of the trajectory to return
Returns
A pair of CMDPoint pointers which define the start and end points of the partition segment

The documentation for this class was generated from the following files: