29 #ifndef GRT_MOVEMENT_TRAJECTORY_FEATURES_HEADER
30 #define GRT_MOVEMENT_TRAJECTORY_FEATURES_HEADER
32 #include "../../CoreModules/FeatureExtraction.h"
33 #include "../../Util/Util.h"
52 MovementTrajectoryFeatures(UINT trajectoryLength=100,UINT numCentroids=10,UINT featureMode=CENTROID_VALUE,UINT numHistogramBins=10,UINT numDimensions = 1,
bool useTrajStartAndEndValues =
false,
bool useWeightedMagnitudeValues =
true);
101 virtual bool reset();
140 bool init(UINT trajectoryLength,UINT numCentroids,UINT featureMode,UINT numHistogramBins,UINT numDimensions,
bool useTrajStartAndEndValues,
bool useWeightedMagnitudeValues);
189 UINT trajectoryLength;
192 UINT numHistogramBins;
193 bool useTrajStartAndEndValues;
194 bool useWeightedMagnitudeValues;
201 enum FeatureModes{CENTROID_VALUE=0,NORMALIZED_CENTROID_VALUE,CENTROID_DERIVATIVE,CENTROID_ANGLE_2D};
206 #endif //GRT_MOVEMENT_TRAJECTORY_FEATURES_HEADER
virtual bool computeFeatures(const VectorFloat &inputVector)
virtual bool predict(VectorFloat inputVector)
virtual bool predict_(VectorFloat &inputVector)
virtual bool saveModelToFile(std::string filename) const
virtual bool train(ClassificationData trainingData)
MovementTrajectoryFeatures & operator=(const MovementTrajectoryFeatures &rhs)
virtual bool deepCopyFrom(const FeatureExtraction *featureExtraction)
virtual bool loadModelFromFile(std::string filename)
MatrixDouble getCentroids()
virtual bool train_(ClassificationData &trainingData)
VectorFloat update(Float x)
virtual ~MovementTrajectoryFeatures()
MovementTrajectoryFeatures(UINT trajectoryLength=100, UINT numCentroids=10, UINT featureMode=CENTROID_VALUE, UINT numHistogramBins=10, UINT numDimensions=1, bool useTrajStartAndEndValues=false, bool useWeightedMagnitudeValues=true)
CircularBuffer< VectorFloat > getTrajectoryData()