4 #include "Trajectory.h"
16 typedef pair<int,int> IntIntPair;
17 typedef pair<CMDPoint*,CMDPoint*> PointPointPair;
18 typedef vector<float> FloatArray;
35 int m_nTotalLineSegments;
36 vector<IntIntPair> m_idArray;
37 vector<PointPointPair> m_lineSegmentArray;
38 vector<FloatArray> m_distanceIndex;
39 FloatArray m_lengthArray;
40 vector<PartitionInfo*> m_partitionInfoArray;
44 float m_coefficient, m_coefficient1, m_coefficient2;
45 #if defined(__PARTITION_PRUNING_OPTIMIZATION__)
48 float m_distance1, m_distance2, m_theta, m_cosTheta;
49 float m_lowerBoundPerp, m_lowerBoundPara, m_lowerBoundAngle;
50 float m_upperBoundPerp, m_upperBoundPara, m_upperBoundAngle;
51 map<IntIntPair,int> m_closePartitionArrayIndexMap;
52 vector<vector<IntIntPair> > m_closePartitionArray;
53 map<IntIntPair,float> m_finePartitionLengthMap;
54 map<IntIntPair,int> m_coarsePartitionIdMap;
57 bool ResetOutlierDetector();
58 bool PartitionTrajectory();
61 bool FindOptimalPartition(
CTrajectory* pTrajectory);
62 bool StoreTrajectoryPartitionIntoIndex();
63 bool CheckOutlyingProportion(
CTrajectory* pTrajectory,
float minProportion);
64 bool GenerateAndSetupOutlier(
CTrajectory* pTrajectory,
int outlierId);
66 int ComputeModelCost(
CTrajectory* pTrajectory,
int startPIndex,
int endPIndex);
67 int ComputeEncodingCost(
CTrajectory* pTrajectory,
int startPIndex,
int endPIndex);
71 float ComputeVectorLength(
CMDPoint* vector);
76 void SubComputeDistanceBetweenTwoLineSegments(
CMDPoint* startPoint1,
CMDPoint* endPoint1,
CMDPoint* startPoint2,
CMDPoint* endPoint2,
float& perpendicularDistance,
float& parallelDistance,
float& angleDistance);
A simple point class.
Definition: MDPoint.h:10
Information required to derive the lower and upper bounds for optimized partition pruning...
Definition: Trajectory.h:16
A high-level class to perform the outlier detection.
Definition: OutlierDetector.h:26
The main storage for information about a trajectory.
Definition: Trajectory.h:28
The main class, and handler for all of the trajectory data.
Definition: TrajData.h:22