ArffUtil.h 732 B

12345678910111213141516171819202122
  1. // ArffUtil.h
  2. #ifndef __ARFFUTIL_H__
  3. #define __ARFFUTIL_H__
  4. #include "Arff.h"
  5. class ArffUtil
  6. {
  7. public:
  8. static unsigned long int FindPosition(const Arff *pArff, const int &attIndex, const double &value);
  9. ///< This function searches in a sorted column of the ARFF class and returns
  10. ///< the position of the first element that is bigger than the provided value.
  11. static bool GetTXYCindex(const Arff *pArff, int &timeInd, int &xInd, int &yInd, int &confInd);
  12. ///< This is a helper function to get time, x, y, confidence indices in ARFF data.
  13. static double GetSamplingPeriod(const Arff *pArff);
  14. ///< This function returns the mean sampling period of the provided ARFF file.
  15. };
  16. #endif /*__ARFFUTIL_H__*/