StatsQ7.cpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #include "StatsQ7.h"
  2. #include <stdio.h>
  3. #include "Error.h"
  4. #include "Test.h"
  5. void StatsQ7::test_max_q7()
  6. {
  7. q7_t result;
  8. uint32_t indexval;
  9. arm_max_q7(inap,
  10. this->nb,
  11. &result,
  12. &indexval);
  13. }
  14. void StatsQ7::test_min_q7()
  15. {
  16. q7_t result;
  17. uint32_t indexval;
  18. arm_min_q7(inap,
  19. this->nb,
  20. &result,
  21. &indexval);
  22. }
  23. void StatsQ7::test_mean_q7()
  24. {
  25. q7_t result;
  26. arm_mean_q7(inap,
  27. this->nb,
  28. &result);
  29. }
  30. void StatsQ7::test_power_q7()
  31. {
  32. q31_t result;
  33. arm_power_q7(inap,
  34. this->nb,
  35. &result);
  36. }
  37. void StatsQ7::setUp(Testing::testID_t id,std::vector<Testing::param_t>& paramsArgs,Client::PatternMgr *mgr)
  38. {
  39. std::vector<Testing::param_t>::iterator it = paramsArgs.begin();
  40. this->nb = *it;
  41. inputA.reload(StatsQ7::INPUT1_Q7_ID,mgr,this->nb);
  42. inap=inputA.ptr();
  43. }
  44. void StatsQ7::tearDown(Testing::testID_t id,Client::PatternMgr *mgr)
  45. {
  46. (void)id;
  47. }