Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

GazeSpeed.h 475 B

123456789101112131415161718192021222324252627282930
  1. // GazeSpeed.h
  2. //
  3. // This class calculates the speed for the provided ARFF file
  4. #ifndef __GAZESPEED_H__
  5. #define __GAZESPEED_H__
  6. #include "../arffHelper/Arff.h"
  7. #include <vector>
  8. class GazeSpeed
  9. {
  10. public:
  11. GazeSpeed(Arff *pArff, double integrationPeriod=1);
  12. vector<double> GetSpeed();
  13. private:
  14. void FillVectors();
  15. Arff *m_pArff;
  16. vector<double> m_vXdeg;
  17. vector<double> m_vYdeg;
  18. int m_step;
  19. int m_timeInd;
  20. };
  21. #endif /*__GAZESPEED_H__*/