Trajectory Outlier Detection Library
 All Classes Functions Variables Pages
TrajData.h
1 /*
2  * TrajData.h
3  *
4  * Created on: Oct 16, 2014
5  * Author: ross
6  */
7 
8 #ifndef TRAJDATA_H_
9 #define TRAJDATA_H_
10 
11 #include <string>
12 #include <list>
13 #include "Outlier.h"
14 #include "Trajectory.h"
15 
22 class TrajData
23 {
24 public:
25  TrajData();
26  ~TrajData();
27  std::string m_inputFilePath;
32 
33  std::vector<CTrajectory*> m_trajectoryList;
34  std::list<COutlier*> m_outlierList;
39 
40  bool readFile(string);
41  void OutputTrajectoryPlot(string);
42  void OutputTrajectoryPlotPNG(string filePath);
43  void OutputTrajectoryPlot(string filePath, string termSettings, string oTrajColor, int oTrajWidth, string oPartColor, int oPartWidth);
44 
45 private:
47 };
48 
49 
50 #endif /* TRAJDATA_H_ */
float m_paramDistance
The distance parameter D.
Definition: TrajData.h:36
int m_nOutlyingPartitions
The outlying partitions found.
Definition: TrajData.h:31
void OutputTrajectoryPlot(string)
Output an eps image of the trajectories and outliers.
Definition: TrajData.cpp:51
std::string m_inputFilePath
The path of the input file.
Definition: TrajData.h:27
int m_nTrajectories
The number of trajectories in the dataset.
Definition: TrajData.h:29
std::vector< CTrajectory * > m_trajectoryList
The list of trajectories.
Definition: TrajData.h:33
TrajData()
Default constructor. Uses the fraction parameter p and the distance parameter D specified in params...
Definition: TrajData.cpp:25
float m_paramFraction
The parameter p (fraction of trajectories that must be not close to be an outlier) ...
Definition: TrajData.h:35
bool readFile(string)
Read trajectories from an input .traj file.
Definition: TrajData.cpp:156
int m_nLineSegments
The number of line segments in the original data.
Definition: TrajData.h:37
int m_nOutliers
The number of outliers found.
Definition: TrajData.h:30
int m_nTrajectoryPartitions
The number of trajectory partitions.
Definition: TrajData.h:38
std::list< COutlier * > m_outlierList
The list of outliers.
Definition: TrajData.h:34
int m_nDimensions
The dimensionality of the dataset (typically 2)
Definition: TrajData.h:28
The main class, and handler for all of the trajectory data.
Definition: TrajData.h:22
int m_maxNPoints
The maximum number of points to read in.
Definition: TrajData.h:46
void OutputTrajectoryPlotPNG(string filePath)
Output a png image of the trajectories and outliers.
Definition: TrajData.cpp:66